annotation_service/commit
new namespace
author | Jacco van Ossenbruggen |
---|---|
Fri May 9 11:52:34 2014 +0200 | |
committer | Jacco van Ossenbruggen |
Fri May 9 11:52:34 2014 +0200 | |
commit | c820ecc87f6f36713acfe98cde3ca8935478c394 |
tree | fe2318a1f9e58b1456c7cc5940df3a0c519e708c |
parent | 33c97de6982b570cd5aa07548ffbc5f301a4de21 |
Diff style: patch stat
diff --git a/lib/oa_schema.pl b/lib/oa_schema.pl index 5543464..0640995 100644 --- a/lib/oa_schema.pl +++ b/lib/oa_schema.pl @@ -11,13 +11,16 @@ Prolog. % Namespace for package-specific extensions: :- rdf_register_ns(ann_ui, 'http://semanticweb.cs.vu.nl/annotate/ui/'). -% Namespace for old open annotation model: +% Namespace for the really old open annotation model: :- rdf_register_ns(oac, 'http://www.openannotation.org/ns/'). -% Namespaces for new open annotation model. Warning: under development! -:- rdf_register_ns(oa, 'http://www.w3.org/ns/openannotation/core/'). -:- rdf_register_ns(oax, 'http://www.w3.org/ns/openannotation/extension/'). +% Namespaces for old open annotation model +:- rdf_register_ns(oa_old, 'http://www.w3.org/ns/openannotation/core/'). +:- rdf_register_ns(oax, 'http://www.w3.org/ns/openannotation/extension/'). + +% Namespaces for current open annotation model +:- rdf_register_ns(oa, 'http://www.w3.org/ns/oa#'). :- rdf_attach_library(annotation_service(rdf)). -:- rdf_load_library(oa_compat). +:- rdf_load_library(oa). diff --git a/rdf/oa.ttl b/rdf/oa.ttl new file mode 100644 index 0000000..127a850 --- /dev/null +++ b/rdf/oa.ttl @@ -0,0 +1,1020 @@ +@prefix : <http://www.w3.org/ns/oa> . +@prefix dc: <http://purl.org/dc/elements/1.1/> . +@prefix oa: <http://www.w3.org/ns/oa#> . +@prefix cnt: <http://www.w3.org/2011/content#> . +@prefix owl: <http://www.w3.org/2002/07/owl#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix xml: <http://www.w3.org/XML/1998/namespace> . +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . +@prefix foaf: <http://xmlns.com/foaf/0.1/> . +@prefix prov: <http://www.w3.org/ns/prov#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix skos: <http://www.w3.org/2004/02/skos/core#> . +@prefix trig: <http://www.w3.org/2004/03/trix/rdfg-1/> . +@prefix dcterms: <http://purl.org/dc/terms/> . +@prefix dctypes: <http://purl.org/dc/dcmitype/> . + +<http://www.w3.org/ns/oa#> rdf:type owl:Ontology ; + + dcterms:modified "2013-02-22T21:40:51+01:00"^^xsd:dateTime ; + + owl:versionInfo "0.9.20130208" ; + + dc:title "Open Annotation Data Model"@en ; + + dc:creator "Robert Sanderson"@en, "Paolo Ciccarese"@it, "Herbert Van de Sompel"@vls ; + + dc:contributor "Stian Soiland-Reyes"@en ; + + rdfs:comment """The Open Annotation Core Data Model specifies an interoperable framework for creating associations between related resources, annotations, using a methodology that conforms to the Architecture of the World Wide Web. + +This ontology is a non-normative OWL formalization of the textual OA specification at http://www.openannotation.org/spec/core/20130208/index.html + +Note that OWL imports are disabled in the published version in order to reduce external implications, improve OWL 2 Profile conformity and increase interoperability. Some OWL tools might thus misleadingly show this ontology as (re)defining properties like skos:prefLabel."""@en ; + + dc:description """The Open Annotation Core Data Model specifies an interoperable framework for creating associations between related resources, annotations, using a methodology that conforms to the Architecture of the World Wide Web. Open Annotations can easily be shared between platforms, with sufficient richness of expression to satisfy complex requirements while remaining simple enough to also allow for the most common use cases, such as attaching a piece of text to a single web resource. + +An Annotation is considered to be a set of connected resources, typically including a body and target, where the body is somehow about the target. The full model supports additional functionality, enabling semantic annotations, embedding content, selecting segments of resources, choosing the appropriate representation of a resource and providing styling hints for consuming clients."""@en ; + + + rdfs:seeAlso <http://www.openannotation.org/spec/core/20130208/index.html> ; + + owl:versionIRI <http://www.openannotation.org/spec/core/20130208/oa.owl> ; + +## Disabled for improved interoperability +# owl:imports rdf: , +# rdfs: , +# <http://www.w3.org/2004/02/skos/core> , +# <http://www.w3.org/ns/prov-o#> ; + +. + + + +################################################################# +# +# Object Properties +# +################################################################# + + +### http://www.w3.org/ns/oa#annotatedBy + +oa:annotatedBy rdf:type owl:ObjectProperty ; + + rdfs:label "annotatedBy"@en ; + + rdfs:comment """The object of the relationship is a resource that identifies the agent responsible for creating the Annotation. This may be either a human or software agent. + +There SHOULD be exactly 1 oa:annotatedBy relationship per Annotation, but MAY be 0 or more than 1, as the Annotation may be anonymous, or multiple agents may have worked together on it. + +It is RECOMMENDED to use these and other FOAF terms to describe agents: foaf:Person, prov:SoftwareAgent, foaf:Organization, foaf:name, foaf:mbox, foaf:openid, foaf:homepage"""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Annotation ; + + rdfs:subPropertyOf prov:wasAttributedTo . + + + +### http://www.w3.org/ns/oa#cachedSource + +oa:cachedSource rdf:type owl:ObjectProperty ; + + rdfs:label "cachedSource"@en ; + + rdfs:comment "A link to a copy of the Source resource's representation appropriate for the Annotation, typically a copy of the original at the time that the Annotation was created"@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:TimeState . + + + +### http://www.w3.org/ns/oa#default + +oa:default rdf:type owl:ObjectProperty ; + + rdfs:label "default"@en ; + + rdfs:comment """The constituent resource of a oa:Choice to use as a default option, if there is no other means to determine which would be most appropriate. + +There SHOULD be exactly 1 default relationship for each Choice."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Choice ; + + rdfs:subPropertyOf oa:item . + + + +### http://www.w3.org/ns/oa#equivalentTo + +oa:equivalentTo rdf:type owl:ObjectProperty ; + + rdfs:label "equivalentTo"@en ; + + rdfs:comment """The subject and object resources of the oa:equivalentTo relationship represent the same resource, but potentially have different metadata such as oa:serializedBy, oa:serializedAt and serialization format. oa:equivalentTo is a symmetrical and transitive relationship; if A oa:equivalentTo B, then it is also true that B oa:equivalent A; and that if B oa:equivalentTo C, then it is also true that A oa:equivalentTo C. + +The Annotation MAY include 0 or more instances of the oa:equivalentTo relationship between copies of the Annotation or other resources, and SHOULD include as many as are available. + +If a system publishes an embedded resource (a cnt:Content) at a new HTTP URI, then it SHOULD express the oa:equivalentTo relationship between the resource's URN and the new URI from which it is available."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:subPropertyOf prov:alternateOf . + + + +### http://www.w3.org/ns/oa#hasBody + +oa:hasBody rdf:type owl:ObjectProperty ; + + rdfs:label "hasBody"@en ; + + rdfs:comment """The relationship between oa:Annotation and body. The body is somehow \"about\" the oa:hasTarget of the annotation. + +The Body may be of any media type, and contain any type of content. The Body SHOULD be identified by HTTP URIs unless they are embedded within the Annotation. + +Embedded bodies SHOULD be instances of cnt:ContentAsText and embed their content with cnt:chars. They SHOULD declare their media type with dc:format, and MAY indicate their language using dc:language and a RFC-3066 language tag. + +There is no OA class provided for \"Body\" as a body might be a target of a different annotation. However, there SHOULD be 1 or more content-based classes associated with the body resources of an Annotation, and the dctypes: vocabulary is recommended for this purpose, for instance dctypes:Text to declare textual content. +"""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Annotation . + + + +### http://www.w3.org/ns/oa#hasScope + +oa:hasScope rdf:type owl:ObjectProperty ; + + rdfs:label "hasScope"@en ; + + rdfs:comment """The relationship between a Specific Resource and the resource that provides the scope or context for it in this Annotation. + +There MAY be 0 or more hasScope relationships for each Specific Resource."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:SpecificResource . + + + +### http://www.w3.org/ns/oa#hasSelector + +oa:hasSelector rdf:type owl:ObjectProperty ; + + rdfs:label "hasSelector"@en ; + + rdfs:comment """The relationship between a oa:SpecificResource and a oa:Selector. + +There MUST be exactly 0 or 1 oa:hasSelector relationship associated with a +Specific Resource. + +If multiple Selectors are required, either to express a choice between different optional, equivalent selectors, or a chain of selectors that should all be processed, it is necessary to use oa:Choice, oa:Composite or oa:List as a selector."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:range oa:Selector ; + + rdfs:domain oa:SpecificResource . + + + +### http://www.w3.org/ns/oa#hasSource + +oa:hasSource rdf:type owl:ObjectProperty ; + + rdfs:label "hasSource"@en ; + + rdfs:comment """The relationship between a oa:SpecificResource and the resource that it is a more specific representation of. + +There MUST be exactly 1 oa:hasSource relationship associated with a Specific Resource."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:SpecificResource . + + + +### http://www.w3.org/ns/oa#hasState + +oa:hasState rdf:type owl:ObjectProperty ; + + rdfs:label "hasState"@en ; + + rdfs:comment """The relationship between a oa:SpecificResource and a oa:State resource. + +There MAY be 0 or 1 oa:hasState relationship for each SpecificResource. + +If there are multiple State resources that must be associated with the specific resource, then the use of the Multiplicity Constructs oa:Choice, oa:Composite or oa:List is RECOMMENDED."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:SpecificResource ; + + rdfs:range oa:State . + + + +### http://www.w3.org/ns/oa#hasTarget + +oa:hasTarget rdf:type owl:ObjectProperty ; + + rdfs:label "hasTarget"@en ; + + rdfs:comment """The relationship between oa:Annotation and target. The target resource is what the oa:hasBody is somewhat \"about\". + +The target may be of any media type, and contain any type of content. The target SHOULD be identified by HTTP URIs unless they are embedded within the Annotation. + +Embedded targets SHOULD be instances of cnt:ContentAsText and embed their content with cnt:chars. They SHOULD declare their media type with dc:format, and MAY indicate their language using dc:language and a RFC-3066 language tag. + +There is no OA class provided for \"Target\" as a target might be a body in a different annotation. However, there SHOULD be 1 or more content-based classes associated with the target resources of an Annotation, and the dctypes: vocabulary is recommended for this purpose, for instance dctypes:Text to declare textual content."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Annotation . + + + +### http://www.w3.org/ns/oa#item + +oa:item rdf:type owl:ObjectProperty ; + + rdfs:label "item"@en ; + + rdfs:comment """The relationship between a multiplicity construct node and its constituent resources. + +There MUST be 1 or more item relationships for each multiplicity construct oa:Choice, oa:Composite and oa:List."""@en ; + + rdfs:subPropertyOf rdfs:member ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#motivatedBy + +oa:motivatedBy rdf:type owl:ObjectProperty ; + + rdfs:label "motivatedBy"@en ; + + rdfs:comment """The relationship between an Annotation and a Motivation, indicating the reasons why the Annotation was created. + +Each Annotation SHOULD have at least one oa:motivatedBy relationship, and MAY be more than 1."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Annotation ; + + rdfs:range oa:Motivation . + + + +### http://www.w3.org/ns/oa#serializedBy + +oa:serializedBy rdf:type owl:ObjectProperty ; + + rdfs:label "serializedBy"@en ; + + rdfs:comment """The object of the relationship is the agent, likely software, responsible for generating the serialization of the Annotation's serialization. + +It is RECOMMENDED to use these and other FOAF terms to describe agents: foaf:Person, prov:SoftwareAgent, foaf:Organization, foaf:name, foaf:mbox, foaf:openid, foaf:homepage + +There MAY be 0 or more oa:serializedBy relationships per Annotation."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Annotation ; + + rdfs:subPropertyOf prov:wasAttributedTo . + + + +### http://www.w3.org/ns/oa#styledBy + +oa:styledBy rdf:type owl:ObjectProperty ; + + rdfs:label "styledBy"@en ; + + rdfs:comment """The relationship between a oa:Annotation and a oa:Style. + +There MAY be 0 or 1 styledBy relationships for each Annotation. + +If there are multiple Style resources that must be associated with the Annotation, then the use of the Multiplicity Constructs oa:Choice, oa:Composite or oa:List is RECOMMENDED."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Annotation ; + + rdfs:range oa:Style . + + + + + +################################################################# +# +# Data properties +# +################################################################# + + +### http://www.w3.org/ns/oa#annotatedAt + +oa:annotatedAt rdf:type owl:DatatypeProperty ; + + rdfs:label "annotatedAt"@en ; + + rdfs:comment """The time at which the Annotation was created. + +There SHOULD be exactly 1 oa:annotatedAt property per Annotation, and MUST NOT be more than 1. The datetime MUST be expressed in the xsd:dateTime format, and SHOULD have a timezone specified."""@en ; + + rdfs:range xsd:dateTimeStamp ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Annotation . + + + +### http://www.w3.org/ns/oa#end + +oa:end rdf:type owl:DatatypeProperty ; + + rdfs:label "end"@en ; + + rdfs:comment """The end position of the segment of text or bytes. The first character/byte in the full text/stream is position 0. The character/byte indicated at position oa:end is NOT included within the selected segment. + +See oa:DataPositionSelector and oa:oa:TextPositionSelector."""@en ; + + rdfs:range xsd:nonNegativeInteger ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Selector . + + + +### http://www.w3.org/ns/oa#exact + +oa:exact rdf:type owl:DatatypeProperty ; + + rdfs:label "exact"@en ; + + rdfs:comment """A copy of the text which is being selected, after normalization. + +See oa:TextQuoteSelector."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Selector . + + + +### http://www.w3.org/ns/oa#prefix + +oa:prefix rdf:type owl:DatatypeProperty ; + + rdfs:label "prefix"@en ; + + rdfs:comment """A snippet of text that occurs immediately before the text which is being selected. + +See oa:TextQuoteSelector."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Selector . + + + +### http://www.w3.org/ns/oa#serializedAt + +oa:serializedAt rdf:type owl:DatatypeProperty ; + + rdfs:label "serializedAt"@en ; + + rdfs:comment """The time at which the agent referenced by oa:serializedBy generated the first serialization of the Annotation, and any subsequent substantially different one. The annotation graph MUST have changed for this property to be updated, and as such represents the last modified datestamp for the Annotation. This might be used to determine if it should be re-imported into a triplestore when discovered. + +There MAY be exactly 1 oa:serializedAt property per Annotation, and MUST NOT be more than 1. The datetime MUST be expressed in the xsd:dateTime format, and SHOULD have a timezone specified. +"""@en ; + + rdfs:range xsd:dateTimeStamp ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Annotation . + + + +### http://www.w3.org/ns/oa#start + +oa:start rdf:type owl:DatatypeProperty ; + + rdfs:label "start"@en ; + + rdfs:comment """The starting position of the segment of text or bytes. The first character/byte in the full text/stream is position 0. The character/byte indicated at position oa:start is included within the selected segment. + +See oa:DataPositionSelector and oa:TextPositionSelector."""@en ; + + rdfs:range xsd:nonNegativeInteger ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Selector . + + + +### http://www.w3.org/ns/oa#styleClass + +oa:styleClass rdf:type owl:DatatypeProperty ; + + rdfs:label "styleClass"@en ; + + rdfs:comment """The string name of the class used in the CSS description that should be applied to the Specific Resource. + +There MAY be 0 or more styleClass properties on a Specific Resource. + +See oa:CssStyle."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:SpecificResource . + + + +### http://www.w3.org/ns/oa#suffix + +oa:suffix rdf:type owl:DatatypeProperty ; + + rdfs:label "suffix"@en ; + + rdfs:comment """The snippet of text that occurs immediately after the text which is being selected. + +See oa:TextQuoteSelector."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:Selector . + + + +### http://www.w3.org/ns/oa#when + +oa:when rdf:type owl:DatatypeProperty ; + + rdfs:label "when"@en ; + + rdfs:comment "The timestamp at which the Source resource should be interpreted for the Annotation, typically the time that the Annotation was created."@en ; + + rdfs:range xsd:dateTimeStamp ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ; + + rdfs:domain oa:TimeState . + + + + + +################################################################# +# +# Classes +# +################################################################# + + +### http://www.w3.org/ns/oa#Annotation + +oa:Annotation rdf:type owl:Class ; + + rdfs:label "Annotation"@en ; + + rdfs:comment """Typically an Annotation has a single Body (oa:hasBody), which is the comment or other descriptive resource, and a single Target (oa:hasTarget) that the Body is somehow \"about\". The Body provides the information which is annotating the Target. + +This \"aboutness\" may be further clarified or extended to notions such as classifying or identifying with oa:motivatedBy."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#Choice + +oa:Choice rdf:type owl:Class ; + + rdfs:label "Choice"@en ; + + rdfs:subClassOf rdf:Alt ; + + rdfs:comment """A multiplicity construct that conveys to a consuming application that it should select one of the constituent resources to display to the user, and not render/use all of them. + +oa:Choice can be used as the object of the object of the oa:hasBody, oa:hasTarget, oa:hasSelector, oa:hasState, oa:styledBy and oa:hasScope relationships, + +There MUST be 1 or more oa:item relationships for each oa:Choice. + +There SHOULD be exactly 1 default relationship for each Choice."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#Composite + +oa:Composite rdf:type owl:Class ; + + rdfs:label "Composite" ; + + rdfs:subClassOf rdf:Bag ; + + rdfs:comment """A multiplicity construct that conveys to a consuming application that all of the constituent resources are required for the Annotation to be correctly interpreted. + +oa:Composite can be used as the object of the object of the oa:hasBody, oa:hasTarget, oa:hasSelector, oa:hasState, oa:styledBy and oa:hasScope relationships, + +There MUST be 2 or more oa:item relationships for each oa:Composite."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#CssStyle + +oa:CssStyle rdf:type owl:Class ; + + rdfs:label "CssStyle"@en ; + + rdfs:subClassOf oa:Style ; + + rdfs:comment """A resource which describes styles for resources participating in the Annotation using CSS. + +Specific Resources MAY be assigned a CSS style class using oa:styleClass. + +The CSS resource MAY have its own dereferencable URI that provides the information. For example, \"Style1\" in the diagram below might actually have the URI \"http://www.example.com/styles/annotations.css\". It MAY be embedded within the Annotation using the inline constructions described in Embedding Resources."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#DataPositionSelector + +oa:DataPositionSelector rdf:type owl:Class ; + + rdfs:label "DataPositionSelector"@en ; + + rdfs:subClassOf oa:Selector ; + + rdfs:comment """A Selector which describes a range of data based on its start and end positions within the byte stream of the representation. + +Each DataPositionSelector MUST have exactly 1 oa:start property. + +Each TextPositionSelector MUST have exactly 1 oa:end property. + +See oa:TextPositionSelector for selection at normalized character level rather than bytestream level."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#FragmentSelector + +oa:FragmentSelector rdf:type owl:Class ; + + rdfs:label "FragmentSelector"@en ; + + rdfs:subClassOf oa:Selector ; + + rdfs:comment """A Selector which describes the segment of interest in a representation, through the use of the fragment identifier component of a URI. + +It is RECOMMENDED to use oa:FragmentSelector as the selector on a Specific Resource rather than annotating the fragment URI directly, in order to improve discoverability of annotation on the Source. + +The oa:FragmentSelector MUST have exactly 1 rdf:value property, containing the fragment identifier component of a URI that describes the segment of interest in the resource, excluding the initial \"#\". + +The Fragment Selector SHOULD have a dcterms:conformsTo relationship with the object being the specification that defines the syntax of the fragment, for instance <http://tools.ietf.org/rfc/rfc3236> for HTML fragments. """@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#HttpRequestState + +oa:HttpRequestState rdf:type owl:Class ; + + rdfs:label "HttpRequestState"@en ; + + rdfs:subClassOf oa:State ; + + rdfs:comment """A resource which describes how to retrieve an appropriate representation of the Source resource for the Annotation, based on the HTTP Request headers to send to the server. + +There MUST be exactly 1 rdf:value property per HttpRequestState, containing HTTP request headers as a single, complete string, exactly as they would appear in an HTTP request. """@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#List + +oa:List rdf:type owl:Class ; + + rdfs:label "List"@en ; + + rdfs:subClassOf oa:Composite ; + + rdfs:comment """A multiplicity construct that conveys to a consuming application that all of the constituent resources are required for the Annotation to be correctly interpreted, and in a particular order. + +oa:List can be used as the object of the object of the oa:hasBody, oa:hasTarget, oa:hasSelector, oa:hasState, oa:styledBy and oa:hasScope relationships, + +There MUST be 2 or more oa:item relationships for each oa:List, with their order defined using the rdf:List construct of rdf:first/rdf:rest/rdf:nil. + +All the elements of the list should also be declared using oa:item, and each of the oa:items should appear at least once in the list."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#Motivation + +oa:Motivation rdf:type owl:Class ; + + rdfs:label "Motivation"@en ; + + rdfs:subClassOf skos:Concept ; + + rdfs:comment """The Motivation for creating an Annotation, indicated with oa:motivatedBy, is a reason for its creation, and might include things like oa:replying to another annotation, oa:commenting on a resource, or oa:linking to a related resource. + +Each Annotation SHOULD have at least one oa:motivatedBy relationship to an instance of oa:Motivation, which is a subClass of skos:Concept."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#Selector + +oa:Selector rdf:type owl:Class ; + + rdfs:label "Selector"@en ; + + rdfs:comment """A resource which describes the segment of interest in a representation of a Source resource, indicated with oa:hasSelector from the Specific Resource. + +This class is not used directly in Annotations, only its subclasses are. + +The nature of the Selector will be dependent on the type of the representation for which the segment is conveyed. The specific type of selector should be indicated using a subclass of oa:Selector. + +The Specifier's description MAY be conveyed as an external or embedded resource (cnt:Content), or as RDF properties within the graph. The description SHOULD use existing standards whenever possible. If the Specifier has an HTTP URI, then its description, and only its description, MUST be returned when the URI is dereferenced."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#SemanticTag + +oa:SemanticTag rdf:type owl:Class ; + + rdfs:label "SemanticTag"@en ; + + rdfs:subClassOf oa:Tag ; + + rdfs:comment """A class assigned to the Body when it is a semantic tagging resource; a URI that identifies a concept, rather than an embedded string, frequently a term from a controlled vocabulary. + +It is NOT RECOMMENDED to use the URI of a document as a Semantic Tag, as it might also be used as a regular Body in other Annotations which would inherit the oa:SemanticTag class assignment. Instead it is more appropriate to create a new URI and link it to the document, using the foaf:page predicate."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#SpecificResource + +oa:SpecificResource rdf:type owl:Class ; + + rdfs:label "SpecificResource"@en ; + + rdfs:comment """A resource identifies part of another Source resource, a particular representation of a resource, a resource with styling hints for renders, or any combination of these. + +The Specific Resource takes the role of oa:hasBody or oa:hasTarget in an oa:Annotation instead of the Source resource. + +There MUST be exactly 1 oa:hasSource relationship associated with a Specific Resource. + +There MUST be exactly 0 or 1 oa:hasSelector relationship associated with a Specific Resource. + +There MAY be 0 or 1 oa:hasState relationship for each Specific Resource. + +If the Specific Resource has an HTTP URI, then the exact segment of the Source resource that it identifies, and only the segment, MUST be returned when the URI is dereferenced. For example, if the segment of interest is a region of an image and the Specific Resource has an HTTP URI, then dereferencing it MUST return the selected region of the image as it was at the time when the annotation was created. Typically this would be a burden to support, and thus the Specific Resource SHOULD be identified by a globally unique URI, such as a UUID URN. If it is not considered important to allow other Annotations or systems to refer to the Specific Resource, then a blank node MAY be used instead."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#State + +oa:State rdf:type owl:Class ; + + rdfs:label "State"@en ; + + rdfs:comment """A resource which describes how to retrieve an appropriate representation of the Source resource, indicated with oa:hasState from the Specific Resource. + +This class is not used directly in Annotations, only its subclasses are. + +The Specifier's description MAY be conveyed as an external or embedded resource (cnt:Content), or as RDF properties within the graph. The description SHOULD use existing standards whenever possible. If the Specifier has an HTTP URI, then its description, and only its description, MUST be returned when the URI is dereferenced."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#Style + +oa:Style rdf:type owl:Class ; + + rdfs:label "Style"@en ; + + rdfs:comment """A resource which describes the style in which the selection or resource should be rendered, indicated with oa:styledBy from an oa:Annotation. + +This class is not used directly in Annotations, only its subclasses are. + +The content of the resource provides the rendering hints about the Annotation's constituent resources. + +The Specifier's description MAY be conveyed as an external or embedded resource (cnt:Content), or as RDF properties within the graph. The description SHOULD use existing standards whenever possible. If the Specifier has an HTTP URI, then its description, and only its description, MUST be returned when the URI is dereferenced."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#SvgSelector + +oa:SvgSelector rdf:type owl:Class ; + + rdfs:label "SvgSelector"@en ; + + rdfs:subClassOf oa:Selector ; + + rdfs:comment """A Selector which selects an area specified as an SVG shape. + +The SVG document should either be retrievable by resolving the URI of this resource, or be included as an Embedded Resource using cnt:Content. + +It is RECOMMENDED that the document contain only a single shape element and that element SHOULD be one of: path, rect, circle, ellipse, polyline, polygon or g. The g element SHOULD ONLY be used to construct a multi-element group, for example to define a donut shape requiring an outer circle and a clipped inner circle. + +The dimensions of both the shape and the SVG canvas MUST be relative to the dimensions of the Source resource. For example, given an image which is 600 pixels by 400 pixels, and the desired section is a circle of 100 pixel radius at the center of the image, then the SVG element would be: <circle cx=\"300\" cy=\"200\" r=\"100\"/> + +It is NOT RECOMMENDED to include style information within the SVG element, nor Javascript, animation, text or other non shape oriented information. Clients SHOULD ignore such information if present."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#Tag + +oa:Tag rdf:type owl:Class ; + + rdfs:label "Tag"@en ; + + rdfs:comment """A class assigned to the Body when it is a tag, such as a embedded text string with cnt:chars. + +Tags are typically keywords or labels, and used for organization, description or discovery of the resource being tagged. In the Semantic Web, URIs are used instead of strings to avoid the issue of polysemy where one word has multiple meanings, such usage MUST be indicated using the subclass oa:SemanticTag. + +Annotations that tag resources, either with text or semantic tags, SHOULD also have the oa:tagging motivation to make the reason for the Annotation more clear to applications, and MAY have other motivations as well."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#TextPositionSelector + +oa:TextPositionSelector rdf:type owl:Class ; + + rdfs:label "TextPositionSelector"@en ; + + rdfs:subClassOf oa:Selector ; + + rdfs:comment """An oa:Selector which describes a range of text based on its start and end positions. + +The text MUST be normalized before counting characters. For a Selector that works from the bitstream rather than the rendered characters, see oa:DataPositionSelector. + +Each oa:TextPositionSelector MUST have exactly 1 oa:start property. + +Each oa:TextPositionSelector MUST have exactly 1 oa:end property."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#TextQuoteSelector + +oa:TextQuoteSelector rdf:type owl:Class ; + + rdfs:label "TextQuoteSelector"@en ; + + rdfs:subClassOf oa:Selector ; + + rdfs:comment """A Selector that describes a textual segment by means of quoting it, plus passages before or after it. + +For example, if the document were \"abcdefghijklmnopqrstuvwxyz\", one could select \"efg\" by a oa:prefix of \"abcd\", the quotation of oa:exact \"efg\" and a oa:suffix of \"hijk\". + +The text MUST be normalized before recording. + +Each TextQuoteSelector MUST have exactly 1 oa:exact property. + +Each TextQuoteSelector SHOULD have exactly 1 oa:prefix property, and MUST NOT have more than 1. + +Each TextQuoteSelector SHOULD have exactly 1 oa:suffix property, and MUST NOT have more than 1."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + +### http://www.w3.org/ns/oa#TimeState + +oa:TimeState rdf:type owl:Class ; + + rdfs:label "TimeState"@en ; + + rdfs:subClassOf oa:State ; + + rdfs:comment """A resource which describes how to retrieve a representation of the Source resource that is temporally appropriate for the Annotation. + +There MUST be at least one of oa:cachedSource or oa:when specified. If there is more than 1, each gives an alternative copy of the representation."""@en ; + + rdfs:isDefinedBy <http://www.w3.org/ns/oa#> . + + + + + +################################################################# +# +# Individuals +# +################################################################# + + +### http://www.w3.org/ns/oa#bookmarking + +oa:bookmarking rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents the creation of a bookmark to the target resources or recorded point or points within one or more resources. For example, an Annotation that bookmarks the point in a text where the reader finished reading. Bookmark Annotations may or may not have a Body resource."@en ; + + skos:prefLabel "bookmarking"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#classifying + +oa:classifying rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents the assignment of a classification type, typically from a controlled vocabulary, to the target resource(s). For example to classify an Image resource as a Portrait."@en ; + + skos:prefLabel "classifying"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#commenting + +oa:commenting rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents a commentary about or review of the target resource(s). For example to provide a commentary about a particular PDF."@en ; + + skos:prefLabel "commenting"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#describing + +oa:describing rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents a description of the target resource(s), as opposed to a comment about them. For example describing the above PDF's contents, rather than commenting on their accuracy."@en ; + + skos:prefLabel "describing"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#editing + +oa:editing rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents a request for a modification or edit to the target resource. For example, an Annotation that requests a typo to be corrected."@en ; + + skos:prefLabel "editing"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#highlighting + +oa:highlighting rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents a highlighted section of the target resource or segment. For example to draw attention to the selected text that the annotator disagrees with. A Highlight may or may not have a Body resource"@en ; + + skos:prefLabel "highlighting"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#identifying + +oa:identifying rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents the assignment of an identity to the target resource(s). For example, annotating the name of a city in a string of text with the URI that identifies it."@en ; + + skos:prefLabel "identifying"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#linking + +oa:linking rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents an untyped link to a resource related to the target."@en ; + + skos:prefLabel "linking"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#moderating + +oa:moderating rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents an assignment of value or quality to the target resource(s). For example annotating an Annotation to moderate it up in a trust network or threaded discussion."@en ; + + skos:prefLabel "moderating"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#motivationScheme + +oa:motivationScheme rdf:type owl:NamedIndividual , + skos:ConceptScheme ; + + rdfs:label "motivationScheme"@en ; + + rdfs:comment "The concept scheme for Open Annotation Motivations"@en . + + + +### http://www.w3.org/ns/oa#questioning + +oa:questioning rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents asking a question about the target resource(s). For example to ask for assistance with a particular section of text, or question its veracity."@en ; + + skos:prefLabel "questioning"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#replying + +oa:replying rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents a reply to a previous statement, either an Annotation or another resource. For example providing the assistance requested in the above."@en ; + + skos:prefLabel "replying"@en ; + + skos:inScheme oa:motivationScheme . + + + +### http://www.w3.org/ns/oa#tagging + +oa:tagging rdf:type owl:NamedIndividual , + oa:Motivation ; + + rdfs:comment "The motivation that represents adding a Tag on the target resource(s). One or more of the bodies of the annotation should be typed as a oa:Tag or oa:SemanticTag."@en ; + + skos:prefLabel "tagging"@en ; + + skos:inScheme oa:motivationScheme . + + + + +### Generated by the OWL API (version 3.3.1957) http://owlapi.sourceforge.net + diff --git a/rdf/oa_compat.ttl b/rdf/oa_compat.ttl deleted file mode 100644 index 34988c1..0000000 --- a/rdf/oa_compat.ttl +++ /dev/null @@ -1,12 +0,0 @@ -@prefix oa: <http://www.w3.org/ns/openannotation/core/> . -@prefix oax: <http://www.w3.org/ns/openannotation/extension/> . -@prefix oac: <http://www.openannotation.org/ns/> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . -@prefix dcterms: <http://purl.org/dc/terms/> . - -oac:Annotation rdfs:subClassOf oa:Annotation . - -oac:hasTarget rdfs:subPropertyOf oa:hasTarget . -oac:hasBody rdfs:subPropertyOf oa:hasBody . -dcterms:creator rdfs:subPropertyOf oa:annotator . diff --git a/rdf/void.ttl b/rdf/void.ttl index ea58a5e..29a002d 100644 --- a/rdf/void.ttl +++ b/rdf/void.ttl @@ -4,21 +4,14 @@ @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix dcterms: <http://purl.org/dc/terms/> . -[ vann:preferredNamespacePrefix "oac" ; - vann:preferredNamespaceUri "http://www.openannotation.org/ns/" ; -] . [ vann:preferredNamespacePrefix "oa" ; - vann:preferredNamespaceUri "http://www.w3.org/ns/openannotation/core/"; -] . - -[ vann:preferredNamespacePrefix "ann_ui" ; - vann:preferredNamespaceUri "http://semanticweb.cs.vu.nl/annotate/ui/" + vann:preferredNamespaceUri "http://www.w3.org/ns/oa#"; ] . -<oa_compat> +<oa> a void:Dataset ; - dcterms:title "Backward compatibility triples for oa namespace updates"; - owl:versionInfo "0.01" ; + dcterms:title "Open Annotation Data Model"@en; + owl:versionInfo "0.9.20130208" ; void:dataDump - <oa_compat.ttl> . + <oa.ttl> .