ODS Atom OWL References
This article outlines the mapping of ODS data to the Atom OWL ontology for the purpose of constructing SPARQL Queries against
OpenLink Data Spaces ODS Data.
Weblog Applications Data Space
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX atom: <http://atomowl.org/ontologies/atomrdf#>
SELECT ?post_title, ?pub, ?feed
FROM <http://demo.openlinksw.com/dataspace>
WHERE
{
?s rdf:type atom:Entry .
?s atom:title ?post_title .
?s atom:published ?pub .
?s atom:source ?feed .
?feed atom:title ?title filter regex(?title, ".*blog")
}
ORDER BY DESC (?pub)
LIMIT 10
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of Weblog Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of blog posts.
Wiki Applications Data Space
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX atom: <http://atomowl.org/ontologies/atomrdf#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX sioct: <http://rdfs.org/sioc/types#>
SELECT DISTINCT ?title, ?date
FROM <http://demo.openlinksw.com/dataspace>
WHERE
{
?forum rdf:type sioct:Wiki .
?forum sioc:container_of ?post.
optional { ?post atom:title ?title } .
optional { ?post atom:published ?date } .
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of Wiki Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a Collection of Wikis.
Feeds / Subscriptions Data Space (Feed Aggregation)
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX atom: <http://atomowl.org/ontologies/atomrdf#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX sioct: <http://rdfs.org/sioc/types#>
SELECT DISTINCT ?title, ?linkr
FROM <http://demo.openlinksw.com/dataspace>
WHERE
{
?forum rdf:type sioct:SubscriptionList .
?forum sioc:parent_of ?parentf .
?parentf sioc:container_of ?post .
optional { ?post atom:title ?title } .
optional { ?post atom:link ?link . ?link atom:LinkHref ?linkr } .
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of Feeds Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of Feed Subscriptions.
Bookmarks Applications Data Space
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX atom: <http://atomowl.org/ontologies/atomrdf#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX sioct: <http://rdfs.org/sioc/types#>
SELECT DISTINCT ?post, ?title
FROM <http://demo.openlinksw.com/dataspace>
WHERE
{
?forum a sioct:BookmarkFolder .
?forum sioc:container_of ?post.
optional {?post atom:title ?title }.
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of an ODS Bookmarks Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of published bookmarks.
Gallery Applications Data Space
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX atom: <http://atomowl.org/ontologies/atomrdf#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX sioct: <http://rdfs.org/sioc/types#>
SELECT DISTINCT ?title, ?pub, ?upd
FROM <http://demo.openlinksw.com/dataspace>
WHERE
{
?forum rdf:type sioct:ImageGallery .
?forum sioc:container_of ?post.
optional { ?post atom:title ?title } .
optional { ?post atom:published ?pub } .
optional { ?post atom:updated ?upd } .
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of an ODS Photo Gallery Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of published Photos.
Community (Group Mode) Applications Data Space
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX atom: <http://atomowl.org/ontologies/atomrdf#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX sioct: <http://rdfs.org/sioc/types#>
SELECT DISTINCT ?title, ?linkr, ?linkf, ?auth
FROM <http://demo.openlinksw.com/dataspace>
WHERE
{
?forum rdf:type sioc:Community .
?forum sioc:has_part ?parentf .
?parentf sioc:container_of ?post.
optional { ?post atom:title ?title } .
optional { ?post atom:link ?link . ?link atom:linkRel ?linkr . ?link atom:LinkHref ?linkf } .
optional { ?post atom:author ?auth } .
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of an ODS Community Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of Community posts.
Briefcase Applications Data Space
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX atom: <http://atomowl.org/ontologies/atomrdf#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX sioct: <http://rdfs.org/sioc/types#>
SELECT DISTINCT ?title, ?link, ?upd
FROM <http://demo.openlinksw.com/dataspace>
WHERE
{
?forum rdf:type sioct:Briefcase .
?forum sioc:container_of ?post.
optional { ?post atom:title ?title } .
optional { ?post atom:link ?link } .
optional { ?post atom:updated ?upd } .
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of Briefcase Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of Briefcase Resources.
Addressbook Applications Data Space
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX atom: <http://atomowl.org/ontologies/atomrdf#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX sioct: <http://rdfs.org/sioc/types#>
SELECT DISTINCT ?title, ?link, ?upd, ?aut, ?pub, ?sour
FROM <http://demo.openlinksw.com/dataspace>
WHERE
{
?forum rdf:type sioct:AddressBook .
?forum sioc:container_of ?post.
optional { ?post atom:title ?title } .
optional { ?post atom:link ?link } .
optional { ?post atom:updated ?upd } .
optional { ?post atom:author ?aut } .
optional { ?post atom:published ?pub } .
optional { ?post atom:source ?sour } .
}
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 Applications Data Space
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX atom: <http://atomowl.org/ontologies/atomrdf#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX sioct: <http://rdfs.org/sioc/types#>
SELECT *
FROM <http://demo.openlinksw.com/dataspace>
WHERE
{
?forum rdf:type sioct:Calendar.
?forum sioc:container_of ?post.
optional { ?post atom:author ?author} .
optional { ?post atom:link ?link} .
optional { ?post atom:published ?published} .
optional { ?post atom:source ?source} .
optional { ?post atom:title ?title} .
optional { ?post atom:updated ?updated} .
optional { ?post atom:published ?date } .
}
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 events.
Discussions Applications Data Space
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX atom: <http://atomowl.org/ontologies/atomrdf#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX sioct: <http://rdfs.org/sioc/types#>
SELECT DISTINCT ?title, ?date
FROM <http://demo.openlinksw.com/dataspace>
WHERE
{
?forum rdf:type sioct:MessageBoard .
?forum sioc:container_of ?post.
optional { ?post atom:title ?title } .
optional { ?post atom:published ?date } .
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of Discussion Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of Discussion posts.
Learn More