apysource vocabulary

Metadata

IRI
https://alganet.github.io/apysource/vocab.ttl#
Title

apysource vocabulary

License
https://opensource.org/licenses/ISC
Version Info

0.3.0

Description

Minimal vocabulary for cache-based source verification.

Reuses standard properties wherever possible: - schema:url for source URLs - dcterms:format, dcterms:title, dcterms:issued, dcterms:language for metadata - dcterms:isPartOf for hierarchical sources - dcterms:license, dcterms:publisher for provenance - bibo:isbn, bibo:doi, bibo:pageStart, bibo:pageEnd for bibliographic data - oa:hasTarget, oa:hasSource, oa:hasSelector for annotation targeting - oa:TextQuoteSelector (oa:exact) for snippet text - oa:CssSelector for CSS selectors - oa:motivatedBy oa:identifying for annotation purpose - prov:wasGeneratedBy for verification activity links

Only defines classes and properties with no standard equivalent.

Classes

Source c

IRI https://alganet.github.io/apysource/vocab.ttl#Source
Description

A citable source document (book, webpage, corpus). Use schema:url for the fetch URL, dcterms:format for media type, dcterms:title/issued/language for metadata.

Sub Class Of
In Domain Of edition dp

Fragment c

IRI https://alganet.github.io/apysource/vocab.ttl#Fragment
Description

A text selection from a source, modeled as an OA Annotation. The source is linked via oa:hasTarget/oa:hasSource. The snippet text lives on oa:exact (TextQuoteSelector). CSS selectors use oa:CssSelector. Human-readable section paths use sv:SectionSelector.

Sub Class Of oa:Annotation

Term c

IRI https://alganet.github.io/apysource/vocab.ttl#Term
Description

A term or entry with direct source backing (e.g. glossary entry, etymology). Typically authored in Turtle, not YAML — the check command verifies Terms via the 'direct' resolution mode (schema:url on the entity itself).

Sub Class Of Concept c

Section Selector c

IRI https://alganet.github.io/apysource/vocab.ttl#SectionSelector
Description

A selector using human-readable section paths. Value stored in rdf:value.

Selector syntax (comma-separated parts, evaluated left-to-right): - Heading match: 'Preamble', 'Chapter I' (case-insensitive, roman numeral equivalence) - Numbered section: 'Article 1', 'paragraph 3' - Quoted title: '"The Fox and the Grapes"' - Nested path: 'Chapter I, Article 1, paragraph 2'

Roman numeral equivalence: 'Chapter IV' matches 'Chapter 4' and vice versa.

Sub Class Of oa:Selector

Verification Activity c

IRI https://alganet.github.io/apysource/vocab.ttl#VerificationActivity
Description

A verification run performed by apysource. Linked from fragments via prov:wasGeneratedBy. Timestamps on prov:startedAtTime/endedAtTime.

Sub Class Of Activity c

Datatype Properties

source location dp

IRI https://alganet.github.io/apysource/vocab.ttl#sourceLocation
Description

Opaque location string for repo-based extraction (e.g. 'chapter:1'). Interpreted by the repo module that handles the source URL.

Range xsd:string

source lines dp

IRI https://alganet.github.io/apysource/vocab.ttl#sourceLines
Description

Line range to extract from plain text (e.g. '10-20', 1-based inclusive).

Range xsd:string

edition dp

IRI https://alganet.github.io/apysource/vocab.ttl#edition
Description

Edition or version of the source document.

Domain Source c
Range xsd:string

verification status dp

IRI https://alganet.github.io/apysource/vocab.ttl#verificationStatus
Description

Outcome of the most recent verification: 'verified', 'failed', or 'pending'.

Range xsd:string

Namespaces

bibo
http://purl.org/ontology/bibo/
dcterms
http://purl.org/dc/terms/
oa
http://www.w3.org/ns/oa#
owl
http://www.w3.org/2002/07/owl#
prov
http://www.w3.org/ns/prov#
rdf
http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs
http://www.w3.org/2000/01/rdf-schema#
skos
http://www.w3.org/2004/02/skos/core#
sv
https://alganet.github.io/apysource/vocab.ttl#
xsd
http://www.w3.org/2001/XMLSchema#

Legend

c Classes
dp Datatype Properties

made by p y LODE 3.3.4 with the OntPub profile

Table of Contents