ODS Annotea References
This article outlines the mapping of ODS data to the Annotea ontology for the purpose of constructing SPARQL Queries against OpenLink Data Spaces ODS Data.
You can actually create you own Data Spaces and then experiment with these queries by opening accounts at: http://demo.openlinksw.com/ods (for very temporary and volatile usage) or http://myopenlink.net:8890/ods (for less volatile usage)
You can run most (if not all) of the queries with minimal modification using the following SPARQL Query Services: http://demo.openlinksw.com/sparql/ (using the 'demo' user account) and http://myopenlink.net:8890/sparql/ (assuming you have an account with this service)
AddressBook Data Space
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix ann: <http://www.w3.org/2000/10/annotation-ns#>
select *
from <http://demo.openlinksw.com/dataspace>
where
{
?forum a sioct:AddressBook .
?forum sioc:container_of ?post.
optional {?post ann:hasAnnotation ?hn }.
optional {?hn ann:annotates ?annotates } .
optional {?hn ann:author ?author } .
optional {?hn ann:body ?body } .
optional {?hn ann:created ?created } .
optional {?hn ann:modified ?modified }.
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of AddressBook Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of AddressBook posts.
Calendar Data Space
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix ann: <http://www.w3.org/2000/10/annotation-ns#>
prefix dct: <http://purl.org/dc/elements/1.1/>
select *
from <http://demo.openlinksw.com/dataspace>
where
{
?forum a sioct:Calendar.
?forum sioc:container_of ?post.
optional{?post dct:title ?title}.
optional {?post ann:hasAnnotation ?hn }.
optional {?hn ann:annotates ?annotates } .
optional {?hn ann:author ?author } .
optional {?hn ann:body ?body } .
optional {?hn ann:created ?created } .
optional {?hn ann:modified ?modified }.
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of Calendar Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of Calendar annotation notes.
Bookmarks Data Space
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix ann: <http://www.w3.org/2000/10/annotation-ns#>
select *
from <http://demo.openlinksw.com/dataspace>
where
{
?forum a sioct:BookmarkFolder .
?forum sioc:container_of ?post.
optional {?post ann:hasAnnotation ?hn }.
optional {?hn ann:annotates ?annotates } .
optional {?hn ann:author ?author } .
optional {?hn ann:body ?body } .
optional {?hn ann:created ?created } .
optional {?hn ann:modified ?modified }.
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of Bookmarks Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection Bookmarks posts.
Feed Manager Data Space
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix ann: <http://www.w3.org/2000/10/annotation-ns#>
select *
from <http://demo.openlinksw.com/dataspace>
where
{
?forum a sioct:SubscriptionList .
?forum sioc:parent_of ?parentf .
?parentf sioc:container_of ?post .
optional {?post ann:hasAnnotation ?hn }.
optional {?hn ann:annotates ?annotates } .
optional {?hn ann:author ?author } .
optional {?hn ann:body ?body } .
optional {?hn ann:created ?created } .
optional {?hn ann:modified ?modified }.
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of Feed Manager Data Space.
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of Fees Manager Annotation posts.
Learn More
- ODS SIOC reference
- Query ODS Data Spaces using SPARQL and Atom OWL Ontology
- Query ODS Data Spaces using SPARQL and FOAF Ontology
- Query ODS Data Spaces using SPARQL and SKOS Ontology
- ODS SPARQL Samples
- Northwind SPARQL Reference
- Query Virtuoso Tutorials using SPARQL
- Query Virtuoso Documentation using SPARQL
- WordPress SIOC Reference
- MedaWiki SIOC Reference
- PHPBB SIOC Reference
- Drupal SIOC Reference