OpenLink Data Spaces,
SIOC and SPARQL Guide


Managing your SIOC Data

OpenLink Data Spaces - Weblog




Weblog Data Space


ODS-Weblog and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioct:Weblog
Data Space Generic Instance Type sioc:Container
Data Space Type Specific Instance Type sioct:Weblog
Data Space Instance Identifier (URI) ID "<http://demo.openlinksw.com/dataspace/demo/weblog/myblog#id>"

ODS-Weblog Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: Weblog

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?blog a sioct:Weblog
    ?blog sioc:container_of ?post
    ?post ?attribute ?o
  }
order by ?attribute

ODS-Weblog Data Space Post/Entry/Item Properties: Query Result

Weblog

ODS-Weblog SPARQL Queries

Dump of all Weblog Posts for a given ODS Member

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select DISTINCT ?forum_name, ?post, ?title ?cr ?url
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?forum a sioct:Weblog .
   ?forum sioc:id ?forum_name.
   ?forum sioc:scope_of ?role.
   ?role sioc:function_of <http://demo.openlinksw.com/dataspace/demo#this> .
   ?forum sioc:container_of ?post.
   optional{?post dct:title ?title}.
   optional{?post dcc:created ?cr}.
   optional{?post sioc:link ?url}.
  }
order by DESC (?cr)

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E+%0D%0Aselect+DISTINCT+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle+%3Fcr+%3Furl+%0D%0Awhere++++%0D%0A++%7B+%0D%0A++++%3Fforum+a+sioct%3AWeblog+.%0D%0A++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A++++%3Fforum+sioc%3Ascope_of+%3Frole.+%0D%0A++++%3Frole+sioc%3Afunction_of+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%2Fdemo%23this%3E+.%0D%0A++++%3Fforum+sioc%3Acontainer_of+%3Fpost.+%0D%0A++++optional%7B%3Fpost+dct%3Atitle+%3Ftitle%7D.%0D%0A++++optional%7B%3Fpost+dcc%3Acreated+%3Fcr%7D.%0D%0A++++optional%7B%3Fpost+sioc%3Alink+%3Furl%7D.%0D%0A++%7D%0D%0Aorder+by+DESC+%28%3Fcr%29&format=text%2Fhtml&debug=on"

Dump of all Weblog Posts for a given ODS Member: Query Result

Weblog

ODS-Weblog SPARQL Queries

List of Web Services (e.g Atom Publishing (SOAP), Moveable Type ( XML-RPC) etc.) associated with Weblog Data Space Instances

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix svc: <http://rdfs.org/sioc/services#>
prefix sioct: <http://rdfs.org/sioc/types#>
select ?endp, ?proto
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?forum a sioct:Weblog .
   ?forum svc:has_service ?svc .
   ?svc svc:service_endpoint ?endp .
   ?svc svc:service_protocol ?proto .
  }
order by ?proto

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+svc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fservices%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aselect+%3Fendp%2C+%3Fproto+%0D%0Awhere+%0D%0A++%7B%0D%0A++++%3Fforum+a+sioct%3AWeblog+.%0D%0A++++%3Fforum+svc%3Ahas_service+%3Fsvc+.%0D%0A++++%3Fsvc+svc%3Aservice_endpoint+%3Fendp+.%0D%0A++++%3Fsvc+svc%3Aservice_protocol+%3Fproto+.%0D%0A+++%7D%0D%0Aorder+by+%3Fproto&format=text%2Fhtml&debug=on

List of Web Services: Query Result

Weblog

ODS-Weblog SPARQL Queries

Dump of all Weblog Posts for a given ODS Member that include content of blog post.

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
prefix sioct: <http://rdfs.org/sioc/types#>
select ?forum_name, ?post, ?title, ?cr, ?content, ?url
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum a sioct:Weblog .
    ?forum sioc:id ?forum_name.
    ?forum sioc:scope_of ?role.
    ?role sioc:function_of <http://demo.openlinksw.com/dataspace/demo#this> .
    ?forum sioc:container_of ?post.
    optional{?post dct:title ?title }.
    optional{?post dcc:created ?cr }.
    optional{?post sioc:link ?url }.
    optional{?post sioc:links_to ?links_to }.
    optional{?post sioc:content ?content}
   }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0Aprefix+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E+%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aselect+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Fcr%2C+%3Fcontent%2C+%3Furl%0D%0Awhere++++%0D%0A++%7B+%0D%0A++++%3Fforum+a+sioct%3AWeblog+.%0D%0A++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A++++%3Fforum+sioc%3Ascope_of+%3Frole.+%0D%0A++++%3Frole+sioc%3Afunction_of+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%2Fdemo%23this%3E+.%0D%0A++++%3Fforum+sioc%3Acontainer_of+%3Fpost.+%0D%0A++++optional%7B%3Fpost+dct%3Atitle+%3Ftitle+%7D.%0D%0A++++optional%7B%3Fpost+dcc%3Acreated+%3Fcr+%7D.%0D%0A++++optional%7B%3Fpost+sioc%3Alink+%3Furl+%7D.%0D%0A++++optional%7B%3Fpost+sioc%3Alinks_to+%3Flinks_to+%7D.%0D%0A++++optional%7B%3Fpost+sioc%3Acontent+%3Fcontent%7D%0D%0A++%7D+&format=text%2Fhtml&debug=on

Dump of all Weblog Posts for a given ODS Member: Query Result

Weblog

ODS-Weblog SPARQL Queries

Dump of all Weblog Posts for a given ODS Member that includes content of blog post plus out-bound links.

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select ?forum_name, ?post, ?title, ?cr, ?content, ?url, ?links_to
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum a sioct:Weblog .
    ?forum sioc:id ?forum_name.
    ?forum sioc:scope_of ?role.
    ?role sioc:function_of <http://demo.openlinksw.com/dataspace/demo#this> .
    ?forum sioc:container_of ?post.
    optional{ ?post dct:title ?title }.
    optional{ ?post dcc:created ?cr }.
    optional{ ?post sioc:link ?url }.
    optional{ ?post sioc:links_to ?links_to }.
    optional{?post sioc:content ?content}
  }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E+%0D%0Aselect+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Fcr%2C+%3Fcontent%2C+%3Furl%2C+%3Flinks_to%0D%0Awhere++++%0D%0A+++%7B+%0D%0A+++++%3Fforum+a+sioct%3AWeblog+.+%0D%0A+++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A+++++%3Fforum+sioc%3Ascope_of+%3Frole.+%0D%0A+++++%3Frole+sioc%3Afunction_of+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%2Fdemo%23this%3E+.%0D%0A+++++%3Fforum+sioc%3Acontainer_of+%3Fpost.+%0D%0A+++++optional%7B+%3Fpost+dct%3Atitle+%3Ftitle+%7D.%0D%0A+++++optional%7B+%3Fpost+dcc%3Acreated+%3Fcr+%7D.%0D%0A+++++optional%7B+%3Fpost+sioc%3Alink+%3Furl+%7D.%0D%0A+++++optional%7B+%3Fpost+sioc%3Alinks_to+%3Flinks_to+%7D.%0D%0A+++++optional%7B%3Fpost+sioc%3Acontent+%3Fcontent%7D%0D%0A+++%7D+&format=text%2Fhtml&debug=on

Dump of all Weblog Posts for a given ODS Member that includes content of blog post plus out-bound links: Query Result

Weblog

OpenLink Data Spaces - Wiki




Wiki Data Space


ODS-Wiki and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioct:Wiki
Data Space Generic Instance Type sioc:Container
Data Space Type Specific Instance Type sioct:Wiki
Data Space Instance Identifier (URI) ID "<http://demo.openlinksw.com/dataspace/demo/wiki/mywiki#id>"

ODS-Wiki Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: Wiki

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
     ?forum rdf:type sioct:Wiki .
     ?forum sioc:container_of ?post .
     ?post ?attribute ?o
   }
order by ?attribute

ODS-Wiki Data Space Post/Entry/Item Properties: Query Result

Wiki

ODS-Wiki SPARQL Queries

Dump of all Wikiwords for a given Wiki

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select distinct ?forum_name, ?post, ?title, ?link, ?links_to, ?cr
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum rdf:type sioct:Wiki .
    ?forum sioc:id ?forum_name.
    ?forum sioc:container_of ?post .
    ?post dct:title ?title.
    optional {?post dcc:created ?cr}.
    optional {?post sioc:link ?link} .
    optional {?post sioc:links_to ?links_to} .
   }
order by ?title

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=%0D%0Aprefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E+%0D%0Aselect+distinct+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Flink%2C+%3Flinks_to%2C+%3Fcr%0D%0Afrom+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0Awhere+%0D%0A++{%0D%0A++++%3Fforum+rdf%3Atype+sioct%3AWiki+.%0D%0A++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A++++%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++%3Fpost++dct%3Atitle+%3Ftitle.%0D%0A++++optional+{%3Fpost+dcc%3Acreated+%3Fcr}.%0D%0A++++optional++{%3Fpost+sioc%3Alink+%3Flink}+.%0D%0A++++optional+{%3Fpost+sioc%3Alinks_to+%3Flinks_to}+.+++%0D%0A++}%0D%0Aorder+by+%3Ftitle%0D%0A&format=text%2Fhtml&debug=on

Dump of all Wikiwords for a given Wiki: Query Result

Wiki

ODS-Wiki SPARQL Queries

Dump of all WikiWords for a given Wiki including content plus out-bound links

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select ?forum_name, ?post, ?title, ?link, ?links_to, ?cr, ?content
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum rdf:type sioct:Wiki .
    ?forum sioc:id ?forum_name.
    ?forum sioc:container_of ?post .
    ?post dct:title ?title.
    optional {?post dcc:created ?cr}.
    optional {?post sioc:link ?link} .
    optional {?post sioc:links_to ?links_to} .
    optional {?post sioc:content ?content}.
   }

http://demo.openlinksw.com/sparql/?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0APREFIX+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E+%0D%0ASELECT+distinct+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Flink%2C+%3Flinks_to%2C+%3Fcr%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%7B%0D%0A++++++++%3Fforum+rdf%3Atype+sioct%3AWiki+.%0D%0A++++++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A++++++++%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++++++%3Fpost++dct%3Atitle+%3Ftitle.%0D%0A++++++++optional+%7B%3Fpost+dcc%3Acreated+%3Fcr%7D.%0D%0A++++++++optional+%7B%3Fpost+sioc%3Alink+%3Flink%7D+.%0D%0A++++++++optional+%7B%3Fpost+sioc%3Alinks_to+%3Flinks_to%7D+.+++%0D%0A++++++%7D%0D%0AORDER+BY+%3Ftitle&format=text%2Fhtml

Dump of all WikiWords for a given Wiki including content plus out-bound links: Query Result

Wiki

ODS-Wiki SPARQL Queries

List of Web Services (e.g Atom Publishing (SOAP), Moveable Type (XML-RPC) etc.) associated with Wiki Data Space Instances

prefix svc: <http://rdfs.org/sioc/services#>
prefix sioct: <http://rdfs.org/sioc/types#>
select ?endp , ?proto
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum a sioct:Wiki.
    ?forum svc:has_service ?svc .
    ?svc svc:service_endpoint ?endp .
    ?svc svc:service_protocol ?proto .
   }
order by ?proto

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+svc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fservices%23%3E%0D%0Aprefix++sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aselect+%3Fendp+%2C+%3Fproto+%0D%0Awhere%0D%0A++%7B%0D%0A++++%3Fforum+a+sioct%3AWiki.%0D%0A++++%3Fforum+svc%3Ahas_service+%3Fsvc+.%0D%0A++++%3Fsvc+svc%3Aservice_endpoint+%3Fendp+.%0D%0A++++%3Fsvc+svc%3Aservice_protocol+%3Fproto+.%0D%0A+++%7D%0D%0Aorder+by+%3Fproto&format=text%2Fhtml&debug=on

List of Web Services: Query Result

Wiki

OpenLink Data Spaces - Calendar




Calendar Data Space


ODS-Calendar and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioct:Calendar
Data Space Generic Instance Type sioc:Calendar
Data Space Type Specific Instance Type sioct:Calendar
Data Space Instance Identifier (URI) ID "<http://demo.openlinksw.com/dataspace/demo/calendar/mycalendar#id>"

ODS-Calendar Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: Calendar

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum rdf:type sioct:Calendar .
    ?forum sioc:container_of ?post .
    ?post ?attribute ?o
  }
order by ?attribute

ODS-Calendar Data Space Post/Entry/Item Properties: Query Result

Calendar

ODS-Calendar SPARQL Queries

Dump of all Events for a given Calendar

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
prefix calr: <http://www.w3.org/2002/12/cal#>
select distinct ?forum_name, ?post, ?title, ?link, ?cr
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum rdf:type sioct:Calendar .
    ?forum sioc:id ?forum_name.
    ?forum sioc:container_of ?post .
    ?post rdf:type calr:vevent .
    ?post dct:title ?title.
    optional {?post dcc:created ?cr}.
    optional {?post sioc:link ?link} .
   }

http://demo.openlinksw.com/sparql/?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0APREFIX+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0APREFIX+calr%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F12%2Fcal%23%3E+%0D%0ASELECT+distinct+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Flink%2C+%3Fcr%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%0D%0A++%7B%0D%0A++++%3Fforum+rdf%3Atype+sioct%3ACalendar+.%0D%0A++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A++++%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++%3Fpost+rdf%3Atype+calr%3Avevent+.%0D%0A++++%3Fpost++dct%3Atitle+%3Ftitle.%0D%0A++++optional+%7B%3Fpost+dcc%3Acreated+%3Fcr%7D.%0D%0A++++optional+%7B%3Fpost+sioc%3Alink+%3Flink%7D+.+++%0D%0A++%7D&format=text%2Fhtml

Dump of all Events for a given Calendar: Query Result

Calendar

ODS-Calendar SPARQL Queries

Dump of all Events for a given Calendar including content

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
prefix calr: <http://www.w3.org/2002/12/cal#>
select ?forum_name, ?post, ?title, ?link, ?links_to, ?cr, ?content
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum rdf:type sioct:Calendar.
    ?forum sioc:id ?forum_name.
    ?forum sioc:container_of ?post .
    ?post rdf:type calr:vevent .
    optional {?post dct:title ?title}.
    optional {?post dcc:created ?cr}.
    optional {?post sioc:link ?link} .
    optional {?post sioc:links_to ?links_to} .
    optional {?post sioc:content ?content}.
   }

http://demo.openlinksw.com/sparql/?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0APREFIX+sioc%3A+++%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E+%0D%0APREFIX+calr%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F12%2Fcal%23%3E+%0D%0ASELECT+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Flink%2C+%3Flinks_to%2C+%3Fcr%2C+%3Fcontent%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%0D%0A++%7B%0D%0A++++%3Fforum+rdf%3Atype+sioct%3ACalendar.%0D%0A++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A++++%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++%3Fpost+rdf%3Atype+calr%3Avevent+.%0D%0A++++optional+%7B%3Fpost+dct%3Atitle+%3Ftitle%7D.%0D%0A++++optional+%7B%3Fpost+dcc%3Acreated+%3Fcr%7D.%0D%0A++++optional+%7B%3Fpost+sioc%3Alink+%3Flink%7D+.%0D%0A++++optional+%7B%3Fpost+sioc%3Alinks_to+%3Flinks_to%7D+.++%0D%0A++++optional+%7B%3Fpost+sioc%3Acontent+%3Fcontent%7D.+%0D%0A++%7D&format=text%2Fhtml

Dump of all Events for a given Calendar including content: Query Result

Calendar

ODS-Calendar SPARQL Queries

Dump of Events with details for a given Calendar

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
prefix calr: <http://www.w3.org/2002/12/cal#>
select distinct ?forum_name, ?post, ?url, ?summary, ?descr, ?location
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum rdf:type sioct:Calendar .
    ?forum sioc:id ?forum_name.
    ?forum sioc:container_of ?post .
    ?post rdf:type calr:vevent .
    optional{?post dct:title ?title}.
    optional{?post calr:url ?url }.
    optional{?post calr:summary ?summary }.
    optional{?post calr:description ?descr }.
    optional{?post calr:dtstart ?start}.
    optional{?post calr:location ?location}.
   }

http://demo.openlinksw.com/sparql/?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0APREFIX+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0APREFIX+calr%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F12%2Fcal%23%3E+%0D%0ASELECT+distinct+%3Fforum_name%2C+%3Fpost%2C+%3Furl%2C+%3Fsummary%2C+%3Fdescr%2C+%3Flocation%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%0D%0A++%7B%0D%0A++++%3Fforum+rdf%3Atype+sioct%3ACalendar+.%0D%0A++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A++++%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++%3Fpost+rdf%3Atype+calr%3Avevent+.%0D%0A++++optional%7B%3Fpost+dct%3Atitle+%3Ftitle%7D.%0D%0A++++optional%7B%3Fpost+calr%3Aurl+%3Furl+%7D.%0D%0A++++optional%7B%3Fpost+calr%3Asummary+%3Fsummary+%7D.%0D%0A++++optional%7B%3Fpost+calr%3Adescription+%3Fdescr+%7D.%0D%0A++++optional%7B%3Fpost+calr%3Adtstart+%3Fstart%7D.%0D%0A++++optional%7B%3Fpost+calr%3Alocation+%3Flocation%7D.%0D%0A++%7D&format=text%2Fhtml

Dump of Events with details for a given Calendar: Query Result

Calendar

OpenLink Data Spaces - Feeds




Feeds / Subscriptions Data Space
(Feed Aggregation)


ODS-Feeds and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioct:SubscriptionList
Data Space Generic Instance Type sioc:Container
Data Space Type Specific Instance Type sioct:SubscriptionList
Data Space Instance Identifier (URI) ID "<http://demo.openlinksw.com/dataspace/demo/subscriptions/DemoFeeds#id>"

ODS-Feeds Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: SubscriptionList

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?forum rdf:type sioct:SubscriptionList .
   ?forum sioc:parent_of ?parentf .
   ?parentf sioc:container_of ?post .
   ?post ?attribute ?o
  }
order by ?attribute

ODS-Feeds Data Space Post/Entry/Item Properties: Query Result

Feeds

ODS-Feeds SPARQL Queries

Obtaining a dump of all Posts within an ODS-Feeds Data Space

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select ?forum_name, ?channel, ?item_title, ?created
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum a sioct:SubscriptionList;
     sioc:id ?forum_name.
    ?forum sioc:scope_of ?role.
    ?role sioc:function_of <http://demo.openlinksw.com/dataspace/demo#this> .
    ?forum sioc:parent_of ?channel .
    ?channel sioc:container_of ?post .
    optional{ ?post dct:title ?item_title }.
    optional{ ?post dcc:created ?created }.
   }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+sioc%3A++%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0Aselect++%3Fforum_name%2C+%3Fchannel%2C+%3Fitem_title%2C+%3Fcreated%0D%0Awhere+%0D%0A++%7B%0D%0A++++%3Fforum+a+sioct%3ASubscriptionList%3B%0D%0A+++++++++++++++++++sioc%3Aid+%3Fforum_name.%0D%0A++++%3Fforum+sioc%3Ascope_of+%3Frole.+%0D%0A++++%3Frole+sioc%3Afunction_of+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%2Fdemo%23this%3E+.%0D%0A++++%3Fforum+sioc%3Aparent_of+%3Fchannel+.%0D%0A++++%3Fchannel+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++optional%7B+%3Fpost+dct%3Atitle+%3Fitem_title+%7D.%0D%0A++++optional%7B+%3Fpost+dcc%3Acreated+%3Fcreated+%7D.%0D%0A++%7D&format=text%2Fhtml&debug=on

Obtaining a dump of all Posts within an ODS-Feeds Data Space: Query Result

Feeds

ODS-Feeds SPARQL Queries

Obtaining a dump of all Posts within an ODS-Feeds Data Space that includes feed content

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select ?forum_name, ?channel, ?item_title, ?url, ?created, ?content
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum a sioct:SubscriptionList;
     sioc:id ?forum_name.
    ?forum sioc:scope_of ?role.
    ?role sioc:function_of <http://demo.openlinksw.com/dataspace/demo#this> .
    ?forum sioc:parent_of ?channel .
    ?channel sioc:container_of ?post .
    optional{ ?post dct:title ?item_title }.
    optional{ ?post sioc:links_to ?url }.
    optional{ ?post dcc:created ?created }.
    optional{ ?post sioc:content ?content}.
   }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0Aselect++%3Fforum_name%2C+%3Fchannel%2C+%3Fitem_title%2C+%3Furl%2C+%3Fcreated%2C+%3Fcontent%0D%0Awhere+%0D%0A++%7B%0D%0A++++%3Fforum+a+sioct%3ASubscriptionList%3B%0D%0A+++++++++++++++sioc%3Aid+%3Fforum_name.%0D%0A++++%3Fforum+sioc%3Ascope_of+%3Frole.+%0D%0A++++%3Frole+sioc%3Afunction_of+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%2Fdemo%23this%3E+.%0D%0A++++%3Fforum+sioc%3Aparent_of+%3Fchannel+.%0D%0A++++%3Fchannel+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++optional%7B+%3Fpost+dct%3Atitle+%3Fitem_title+%7D.%0D%0A++++optional%7B+%3Fpost+sioc%3Alinks_to+%3Furl+%7D.%0D%0A++++optional%7B+%3Fpost+dcc%3Acreated+%3Fcreated+%7D.%0D%0A++++optional%7B+%3Fpost+sioc%3Acontent+%3Fcontent%7D.%0D%0A++%7D&format=text%2Fhtml&debug=on

Obtaining a dump of all Posts within an ODS-Feeds Data Space that includes feed content: Query Result

Feeds

OpenLink Data Spaces - Bookmarks




Bookmarks Data Space


ODS-Bookmarks and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioct:BookmarkFolder
Data Space Generic Instance Type sioc:Container
Data Space Type Specific Instance Type sioct:BookmarkFolder
Data Space Instance Identifier (URI) ID "<http://demo.openlinksw.com/dataspace/demo/bookmark/mybookmarks#id>"

ODS-Bookmarks Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: BookmarkFolder

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?forum a sioct:BookmarkFolder .
   ?forum sioc:container_of ?post .
   ?post ?attribute ?o
  }
order by ?attribute

ODS-Bookmarks Data Space Post/Entry/Item Properties: Query Result

Bookmarks

ODS-Bookmarks SPARQL Queries

Dump of all Bookmark Data Space entries for a given ODS Bookmarks Data Space

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dct: <http://purl.org/dc/elements/1.1/>
select distinct ?forum_name, ?post, ?title, ?link, ?url
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum a sioct:BookmarkFolder .
    ?forum sioc:id ?forum_name.
    ?forum sioc:scope_of ?role.
    ?role sioc:function_of <http://demo.openlinksw.com/dataspace/demo#this> .
    ?forum sioc:container_of ?post .
    optional{ ?post dct:title ?title }.
    optional{ ?post sioc:link ?link } .
    optional{ ?post sioc:links_to ?url }
   }
order by ?title

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aselect+distinct+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Flink%2C+%3Furl%0D%0Awhere+%7B%0D%0A++++++++%3Fforum+a+sioct%3ABookmarkFolder+.%0D%0A++++++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A++++++++%3Fforum+sioc%3Ascope_of+%3Frole.+%0D%0A++++++++%3Frole+sioc%3Afunction_of+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%2Fdemo%23this%3E+.%0D%0A++++++++%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++++++optional%7B+%3Fpost++dct%3Atitle+%3Ftitle+%7D.%0D%0A++++++++optional%7B+%3Fpost+sioc%3Alink+%3Flink++%7D+.%0D%0A++++++++optional%7B+%3Fpost+sioc%3Alinks_to+%3Furl+%7D%0D%0A++++++%7D%0D%0Aorder+by+%3Ftitle&format=text%2Fhtml&debug=on

Dump of all Bookmark Data Space entries for a given ODS Bookmarks Data Space: Query Result

Bookmarks

ODS-Bookmarks SPARQL Queries

List of Web Services (e.g Atom Publishing (SOAP), Moveable Type (XML-RPC) etc.) associated with Bookmarks Data Space Instances

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix svc: <http://rdfs.org/sioc/services#>
prefix sioct: <http://rdfs.org/sioc/types#>
select ?endp , ?proto
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum a sioct:BookmarkFolder .
    ?forum svc:has_service ?svc .
    ?svc svc:service_endpoint ?endp .
    ?svc svc:service_protocol ?proto .
   }
order by ?proto

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+svc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fservices%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aselect+%3Fendp+%2C+%3Fproto+%0D%0Awhere+%0D%0A++%7B%0D%0A++++%3Fforum+a+sioct%3ABookmarkFolder+.%0D%0A++++%3Fforum+svc%3Ahas_service+%3Fsvc+.%0D%0A++++%3Fsvc+svc%3Aservice_endpoint+%3Fendp+.%0D%0A++++%3Fsvc+svc%3Aservice_protocol+%3Fproto+.%0D%0A+++%7D%0D%0Aorder+by+%3Fproto&format=text%2Fhtml&debug=on

List of Web Services: Query Result

Bookmarks

OpenLink Data Spaces - AddressBook




AddressBook Data Space


ODS-AddressBook and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioct:AddressBook
Data Space Generic Instance Type sioc:Container
Data Space Type Specific Instance Type sioct:AddressBook
Data Space Instance Identifier (URI) ID "<http://demo.openlinksw.com/dataspace/demo/addressbook/myAddressBook#id>"

ODS-AddressBook Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: AddressBook

prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?forum a sioct:AddressBook .
   ?forum sioc:container_of ?post .
   ?post ?attribute ?o
  }
order by ?attribute

ODS-AddressBook Data Space Post/Entry/Item Properties: Query Result

AddressBook

ODS-AddressBook SPARQL Queries

Dump all AddressBook's members

prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
select ?member, ?id
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?s a sioct:AddressBook;
    sioc:scope_of ?role.
    ?role sioc:function_of ?member.
    ?member sioc:id ?id.
   }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0Aselect+%3Fmember%0D%0Awhere+%0D%0A++%7B%0D%0A++++%3Fs+a+sioct%3AAddressBook%3B%0D%0A++++sioc%3Ascope_of+%3Frole.%0D%0A++++%3Frole+sioc%3Afunction_of+%3Fmember.%0D%0A++++%3Fmember+a+foaf%3APerson.++++++++%0D%0A++%7D&format=text%2Fhtml&debug=on

Dump all AddressBook's members: Query Result

AddressBook

ODS-AddressBook SPARQL Queries

Dump all AddressBook's members friends

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
select ?member, ?knows
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?s a sioct:AddressBook;
    sioc:scope_of ?role.
    ?role sioc:function_of ?member.
    ?member foaf:knows ?knows
   }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0Aselect+%3Fmember%2C+%3Fknows%0D%0Awhere%0D%0A++%7B%0D%0A++++%3Fs+a+sioct%3AAddressBook%3B%0D%0A++++++sioc%3Ascope_of+%3Frole.%0D%0A++++%3Frole+sioc%3Afunction_of+%3Fmember.%0D%0A++++%3Fmember+a+foaf%3APerson.%0D%0A++++%3Fmember+foaf%3Aknows+%3Fknows%0D%0A++%7D&format=text%2Fhtml&debug=on

Dump all AddressBook's members friends: Query Result

AddressBook

ODS-AddressBook SPARQL Queries

Dump all AddressBook's contacts

prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix vcd: <http://www.w3.org/2001/vcard-rdf/3.0#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select ?FN ?nick ?address ?title ?created ?link ?topic
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum a sioct:AddressBook .
    ?forum sioc:container_of ?post .
    optional {?post vcd:FN ?FN }.
    optional {?post vcd:NICKNAME ?nick}.
    optional {?post vcd:ADR ?address}.
    optional {?post dct:title ?title}.
    optional {?post dcc:created ?created}.
    optional {?post sioc:link ?link }.
    optional {?post sioc:topic ?topic } .
   }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+vcd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2Fvcard-rdf%2F3.0%23%3E%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0Aselect+%3FFN+%3Fnick+%3Faddress+%3Ftitle+%3Fcreated+%3Flink+%3Ftopic+%0D%0Awhere%0D%0A++%7B%0D%0A++++%3Fforum+a+sioct%3AAddressBook+.%0D%0A++++%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++optional+%7B%3Fpost+vcd%3AFN+%3FFN+%7D.%0D%0A++++optional+%7B%3Fpost+vcd%3ANICKNAME+%3Fnick%7D.%0D%0A++++optional+%7B%3Fpost+vcd%3AADR+%3Faddress%7D.%0D%0A++++optional+%7B%3Fpost+dct%3Atitle+%3Ftitle%7D.%0D%0A++++optional+%7B%3Fpost+dcc%3Acreated+%3Fcreated%7D.%0D%0A++++optional+%7B%3Fpost+sioc%3Alink+%3Flink+%7D.%0D%0A++++optional+%7B%3Fpost+sioc%3Atopic+%3Ftopic+%7D+.%0D%0A++%7D&format=text%2Fhtml&debug=on

Dump all AddressBook's contacts: Query Result

AddressBook

ODS-AddressBook SPARQL Queries

List of Web Services (e.g Atom Publishing (SOAP), Moveable Type (XML-RPC) etc.) associated with AddressBook Data Space Instances

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix svc: <http://rdfs.org/sioc/services#>
prefix sioct: <http://rdfs.org/sioc/types#>
select ?endp , ?proto
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum a sioct:AddressBook .
    ?forum svc:has_service ?svc .
    ?svc svc:service_endpoint ?endp .
    ?svc svc:service_protocol ?proto .
   }
order by ?proto

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+svc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fservices%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aselect+%3Fendp+%2C+%3Fproto+%0D%0Awhere+%0D%0A++%7B%0D%0A++++%3Fforum+a+sioct%3AAddressBook+.%0D%0A++++%3Fforum+svc%3Ahas_service+%3Fsvc+.%0D%0A++++%3Fsvc+svc%3Aservice_endpoint+%3Fendp+.%0D%0A++++%3Fsvc+svc%3Aservice_protocol+%3Fproto+.%0D%0A+++%7D%0D%0Aorder+by+%3Fproto&format=text%2Fhtml&debug=on

List of Web Services: Query Result

AddressBook

ODS-AddressBook SPARQL Queries

Dump all properties supported for members imported from Briefcase FOAF uploaded

prefix sioct: <http://rdfs.org/sioc/types#>
prefix sioc: <http://rdfs.org/sioc/ns#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?s a sioct:AddressBook;
    sioc:scope_of ?role.
    ?role sioc:function_of ?member.
    ?member ?attribute ?o
   }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0Aselect+distinct+%3Fattribute%0D%0Awhere%0D%0A++%7B%0D%0A++++%3Fs+a+sioct%3AAddressBook%3B%0D%0A++++sioc%3Ascope_of+%3Frole.%0D%0A++++%3Frole+sioc%3Afunction_of+%3Fmember.%0D%0A++++%3Fmember+%3Fattribute+%3Fo++%0D%0A++%7D&format=text%2Fhtml&debug=on

Dump all properties supported for members imported from Briefcase FOAF uploaded: Query Result

AddressBook

OpenLink Data Spaces - Polls




Polls Data Space


ODS-Polls and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioct:SurveyCollection
Data Space Generic Instance Type sioc:Container
Data Space Type Specific Instance Type sioct:SurveyCollection
Data Space Instance Identifier (URI) ID "<http://demo.openlinksw.com/dataspace/demo/polls/mypolls#id>"

ODS-Polls Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: ServeyCollection

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?forum a sioct:SurveyCollection.
   ?forum sioc:container_of ?post .
   ?post ?attribute ?o
  }
order by ?attribute

ODS-Polls Data Space Post/Entry/Item Properties: Query Result

Polls

ODS-Polls SPARQL Queries

Dump of all Polls Posts for a given ODS Member

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select DISTINCT ?forum_name, ?post, ?title ?cr ?url
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum a sioct:SurveyCollection.
    ?forum sioc:id ?forum_name.
    ?forum sioc:scope_of ?role.
    ?role sioc:function_of <http://demo.openlinksw.com/dataspace/demo#this> .
    ?forum sioc:container_of ?post.
    optional{ ?post dct:title ?title }.
    optional{ ?post dcc:created ?cr }.
    optional{ ?post sioc:link ?url }.
   }
order by DESC (?cr)

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E+%0D%0Aselect+DISTINCT+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle+%3Fcr+%3Furl+%0D%0Awhere++++%7B+%0D%0A+++++++++++%3Fforum+a+sioct%3ASurveyCollection.%0D%0A+++++++++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A+++++++++++%3Fforum+sioc%3Ascope_of+%3Frole.+%0D%0A+++++++++++%3Frole+sioc%3Afunction_of+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%2Fdemo%23this%3E+.%0D%0A+++++++++++%3Fforum+sioc%3Acontainer_of+%3Fpost.+%0D%0A+++++++++++optional%7B+%3Fpost+dct%3Atitle+%3Ftitle+%7D.%0D%0A+++++++++++optional%7B+%3Fpost+dcc%3Acreated+%3Fcr+%7D.%0D%0A+++++++++++optional%7B+%3Fpost+sioc%3Alink+%3Furl+%7D.%0D%0A+++++++++%7D%0D%0Aorder+by+DESC+%28%3Fcr%29&format=text%2Fhtml&debug=on

Dump of all Polls Posts for a given ODS Member: Query Result

Polls

OpenLink Data Spaces - Photo Gallery




Photo Gallery Data Space


ODS-Photo Gallery and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioct:ImageGallery
Data Space Generic Instance Type sioc:Container
Data Space Type Specific Instance Type sioct:ImageGallery
Data Space Instance Identifier (URI) ID "<http://demo.openlinksw.com/dataspace/demo/photos/MyGallery#id>"

ODS-Photo Gallery Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: ImageGallery

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?forum rdf:type sioct:ImageGallery .
   ?forum sioc:container_of ?post .
   ?post ?attribute ?o
  }
order by ?attribute

ODS-Photo Gallery Data Space Post/Entry/Item Properties: Query Result

Gallery

ODS-Photo Gallery SPARQL Queries

Dump of all Data Space entries for a given ODS Photo Gallery including content and out-bound links

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select ?forum_name, ?post, ?title, ?link, ?links_to, ?cr, ?content
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum rdf:type sioct:ImageGallery .
    ?forum sioc:id ?forum_name.
    ?forum sioc:container_of ?post .
    optional {?post dct:title ?title}.
    optional {?post dcc:created ?cr}.
    optional {?post sioc:link ?link} .
    optional {?post sioc:links_to ?links_to} .
    optional {?post sioc:content ?content}
   }

http://demo.openlinksw.com/sparql/?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0APREFIX+sioc%3A+++%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E+%0D%0ASELECT+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Flink%2C+%3Fcr%2C+%3Fcontent%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%7B%0D%0A++++++++%3Fforum+rdf%3Atype+sioct%3AImageGallery+.%0D%0A++++++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A++++++++%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++++++optional+%7B%3Fpost++dct%3Atitle+%3Ftitle+%7D.%0D%0A++++++++optional+%7B%3Fpost+dcc%3Acreated+%3Fcr%7D.%0D%0A++++++++optional+%7B%3Fpost+sioc%3Alink+%3Flink%7D+.%0D%0A++++++++optional+%7B%3Fpost+sioc%3Acontent+%3Fcontent%7D%0D%0A++++++%7D&format=text%2Fhtml

Dump of all Data Space entries for a given ODS Photo Gallery including content and out-bound links: Query Result

Gallery

ODS-Photo Gallery SPARQL Queries

List of Web Services (e.g Atom Publishing (SOAP), Moveable Type (XML-RPC) etc.) associated with Gallery Data Space Instances

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix svc: <http://rdfs.org/sioc/services#>
prefix sioct: <http://rdfs.org/sioc/types#>
select ?endp , ?proto
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum a sioct:ImageGallery .
    ?forum svc:has_service ?svc .
    ?svc svc:service_endpoint ?endp .
    ?svc svc:service_protocol ?proto .
   }
order by ?proto

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+svc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fservices%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aselect+%3Fendp+%2C+%3Fproto+%0D%0Awhere+%7B%0D%0A++++++++%3Fforum+a+sioct%3AImageGallery++.%0D%0A++++++++%3Fforum+svc%3Ahas_service+%3Fsvc+.%0D%0A++++++++%3Fsvc+svc%3Aservice_endpoint+%3Fendp+.%0D%0A++++++++%3Fsvc+svc%3Aservice_protocol+%3Fproto+.%0D%0A++++++%7D%0D%0Aorder+by+%3Fproto&format=text%2Fhtml&debug=on

List of Web Services: Query Result

Gallery

OpenLink Data Spaces - Community




Community (Group Mode) Data Space


ODS-Community and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioc:Community
Data Space Generic Instance Type sioc:Container
Data Space Type Specific Instance Type sioc:Community
Data Space Instance Identifier (URI) ID "<http://demo.openlinksw.com/dataspace/demo/community/demoCommunity#id>"

ODS-Community Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: Community

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?forum rdf:type sioc:Community .
   ?forum sioc:has_part ?parentf .
   ?parentf sioc:container_of ?post .
   ?post ?attribute ?o
  }
order by ?attribute

ODS-Community Data Space Post/Entry/Item Properties: Query Result

Community

ODS-Community SPARQL Queries

Dump of all Data Space entries for a given ODS Community

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix dct: <http://purl.org/dc/elements/1.1/>
select ?post ?title
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum rdf:type sioc:Community .
    ?forum sioc:has_part ?parentf .
    ?parentf sioc:container_of ?post .
    optional{?post dct:title ?title} .
   }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0ASELECT+%3Fpost+%3Ftitle%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%0D%0A++%7B%0D%0A++++%3Fforum+rdf%3Atype+sioc%3ACommunity+.%0D%0A++++%3Fforum+sioc%3Ahas_part+%3Fparentf+.%0D%0A++++%3Fparentf+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++optional%7B%3Fpost++dct%3Atitle+%3Ftitle%7D+.%0D%0A++%7D&format=text%2Fhtml

Dump of all Data Space entries for a given ODS Community: Query Result

Community

OpenLink Data Spaces - Briefcase




Briefcase Data Space


ODS-Briefcase and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioct:Briefcase
Data Space Generic Instance Type sioc:Container
Data Space Type Specific Instance Type sioct:Briefcase
Data Space Instance Identifier (URI) ID "<http://demo.openlinksw.com/dataspace/demo/briefcase/demoBriefcase#id>"

ODS-Briefcase Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: Briefcase

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?forum rdf:type sioct:Briefcase .
   ?forum sioc:container_of ?post .
   ?post ?attribute ?o
  }
order by ?attribute

ODS-Briefcase Data Space Post/Entry/Item Properties: Query Result

Briefcase

ODS-Briefcase SPARQL Queries

List of Web Services (e.g Atom Publishing (SOAP), Moveable Type (XML-RPC) etc.) associated with Briefcase Data Space Instances

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix svc: <http://rdfs.org/sioc/services#>
prefix sioct: <http://rdfs.org/sioc/types#>
select ?endp , ?proto
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum a sioct:Briefcase .
    ?forum svc:has_service ?svc .
    ?svc svc:service_endpoint ?endp .
    ?svc svc:service_protocol ?proto .
   }
order by ?proto

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=%0D%0Aprefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+svc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fservices%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aselect+%3Fendp+%2C+%3Fproto+%0D%0Afrom+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0Awhere+{%0D%0A++++++++%3Fforum+a+sioct%3ABriefcase+.%0D%0A++++++++%3Fforum+svc%3Ahas_service+%3Fsvc+.%0D%0A++++++++%3Fsvc+svc%3Aservice_endpoint+%3Fendp+.%0D%0A++++++++%3Fsvc+svc%3Aservice_protocol+%3Fproto+.%0D%0A++++++}%0D%0Aorder+by+%3Fproto%0D%0A&format=text%2Fhtml&debug=on

ODS-Briefcase List of Web Services: Query Result

Briefcase

ODS-Briefcase SPARQL Queries

Dump of all Briefcase Items from special "Public" folder

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select DISTINCT ?forum_name, ?post, ?title, ?cr, ?url, ?links_to
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum a sioct:Briefcase .
    ?forum sioc:id ?forum_name.
    ?forum sioc:container_of ?post.
    optional { ?post dct:title ?title }.
    optional { ?post dcc:created ?cr }.
    optional { ?post sioc:link ?url }.
    optional { ?post sioc:links_to ?links_to }.
   }
order by DESC (?cr)

http://demo.openlinksw.com/sparql/?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+sioc%3A+++%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0ASELECT+DISTINCT+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Fcr%2C+%3Furl%2C+%3Flinks_to%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE++++%7B%0D%0A+++++++++++%3Fforum+a+sioct%3ABriefcase+.%0D%0A+++++++++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A+++++++++++%3Fforum+sioc%3Acontainer_of+%3Fpost.%0D%0A+++++++++++optional+%7B+%3Fpost+dct%3Atitle+%3Ftitle+%7D.%0D%0A+++++++++++optional+%7B+%3Fpost+dcc%3Acreated+%3Fcr+%7D.%0D%0A+++++++++++optional+%7B+%3Fpost+sioc%3Alink+%3Furl+%7D.%0D%0A+++++++++++optional+%7B+%3Fpost+sioc%3Alinks_to+%3Flinks_to+%7D.%0D%0A+++++++++%7D%0D%0AORDER+BY+DESC+%28%3Fcr%29&format=text%2Fhtml

Dump of all Briefcase Items from special "Public" folder: Query Result

Briefcase

OpenLink Data Spaces - Discussion




Discussion / Conversation Data Space


ODS-Discussion and SIOC Ontology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
Data Space SubClass SubClass sioct:MessageBoard
Data Space Generic Instance Type sioc:Container
Data Space Type Specific Instance Type sioct:MessageBoard

ODS-Discussion Data Space Post/Entry/Item Properties

The following query scans an entire ODS data space (collection of many application specific data spaces) for properties associated with Entities of Type: MessageBoard

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
select distinct ?attribute
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?forum rdf:type sioct:MessageBoard .
   ?forum sioc:container_of ?post .
   ?post ?attribute ?o
  }
order by ?attribute

ODS-Discussion Data Space Post/Entry/Item Properties: Query Result

Discussion

ODS-Discussion SPARQL Queries

Discussion list

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select distinct ?forum_name, ?post, ?title, ?mod_time, ?create_time, ?url
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum a sioct:MessageBoard ;
     sioc:id ?forum_name.
    optional{ ?forum sioc:container_of ?post } .
    optional{ ?post dct:title ?title } .
    optional{ ?post dcc:modified ?mod_time } .
    optional{ ?post dcc:created ?create_time } .
    optional{ ?post sioc:link ?url } .
   }
limit 10

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=%0D%0Aprefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0Aselect+distinct+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Fmod_time%2C+%3Fcreate_time%2C+%3Furl%0D%0Afrom+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0Awhere+{%0D%0A++++++++%3Fforum+a+sioct%3AMessageBoard+%3B%0D%0A+++++++++++++++sioc%3Aid+%3Fforum_name.+%0D%0A++++++++optional{+%3Fforum+sioc%3Acontainer_of+%3Fpost++}+.%0D%0A++++++++optional{+%3Fpost+dct%3Atitle+%3Ftitle+}+.%0D%0A++++++++optional{+%3Fpost+dcc%3Amodified+%3Fmod_time+}+.%0D%0A++++++++optional{+%3Fpost+dcc%3Acreated+%3Fcreate_time+}+.%0D%0A++++++++optional{+%3Fpost+sioc%3Alink+%3Furl+}+.%0D%0A++++++}%0D%0Alimit+10&format=text%2Fhtml&debug=on

Discussion list: Query Result

Discussion

ODS-Discussion SPARQL Queries

Obtaining a dump of all Posts within a specific ODS-Discussion Data Space that includes discussion content

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select ?forum_name, ?post, ?title, ?mod_time, ?create_time, ?url, ?content
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum a sioct:MessageBoard ;
     sioc:id ?forum_name FILTER REGEX(?forum_name,".*demo*.").
    optional{ ?forum sioc:container_of ?post } .
    optional{ ?post dct:title ?title } .
    optional{ ?post dcc:modified ?mod_time } .
    optional{ ?post dcc:created ?create_time } .
    optional{ ?post sioc:link ?url } .
    optional{ ?post sioc:content ?content}.
}

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0ASELECT+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Fmod_time%2C+%3Fcreate_time%2C+%3Furl%2C+%3Fcontent%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%7B%0D%0A++++++++%3Fforum+a+sioct%3AMessageBoard+%3B%0D%0A++++++++++++++++++++sioc%3Aid+%3Fforum_name+FILTER+REGEX%28%3Fforum_name%2C%22.*demo*.%22%29.+%0D%0A++++++++optional%7B+%3Fforum+sioc%3Acontainer_of+%3Fpost++%7D+.%0D%0A++++++++optional%7B+%3Fpost+dct%3Atitle+%3Ftitle+%7D+.%0D%0A++++++++optional%7B+%3Fpost+dcc%3Amodified+%3Fmod_time+%7D+.%0D%0A++++++++optional%7B+%3Fpost+dcc%3Acreated+%3Fcreate_time+%7D+.%0D%0A++++++++optional%7B+%3Fpost+sioc%3Alink+%3Furl+%7D+.%0D%0A++++++++optional%7B+%3Fpost+sioc%3Acontent+%3Fcontent%7D.%0D%0A++++++%7D&format=text%2Fhtml

Obtaining a dump of all Posts within a specific ODS-Discussion Data Space: Query Result

Discussion

Dump of Blog Posts with "Conversation" Feature Enabled

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select distinct ?forum_name, ?post, ?title, ?mod_time, ?create_time, ?url
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum rdf:type sioct:MessageBoard.
    optional{ ?forum sioc:id ?forum_name. FILTER REGEX(?forum_name,".*demo*.") }.
    optional{ ?forum sioc:container_of ?post } .
    optional{ ?post dct:title ?title } .
    optional{ ?post dcc:modified ?mod_time } .
    optional{ ?post dcc:created ?create_time } .
    optional{ ?post sioc:link ?url } .
   }
limit 10

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0ASELECT+distinct+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Fmod_time%2C+%3Fcreate_time%2C+%3Furl%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%7B%0D%0A++++++++%3Fforum+rdf%3Atype+sioct%3AMessageBoard.%0D%0A++++++++optional%7B+%3Fforum+sioc%3Aid+%3Fforum_name.+FILTER+REGEX%28%3Fforum_name%2C%22.*demo*.%22%29+%7D.%0D%0A++++++++optional%7B+%3Fforum+sioc%3Acontainer_of+%3Fpost++%7D+.%0D%0A++++++++optional%7B+%3Fpost+dct%3Atitle+%3Ftitle+%7D+.%0D%0A++++++++optional%7B+%3Fpost+dcc%3Amodified+%3Fmod_time+%7D+.%0D%0A++++++++optional%7B+%3Fpost+dcc%3Acreated+%3Fcreate_time+%7D+.%0D%0A++++++++optional%7B+%3Fpost+sioc%3Alink+%3Furl+%7D+.%0D%0A++++++%7D&format=text%2Fhtml

Dump of Blog Posts with "Conversation" Feature Enabled: Query Result

Discussion

Dump of Wiki Posts with "Conversation" Feature Enabled

Dump of Wiki Posts with "Conversation" Feature Enabled

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
select distinct ?forum_name, ?post, ?title, ?mod_time, ?create_time, ?url
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum rdf:type sioct:MessageBoard ;
     sioc:id ?forum_name FILTER REGEX(?forum_name,".*mywiki*.").
    optional{ ?forum sioc:container_of ?post } .
    optional{ ?post dct:title ?title } .
    optional{ ?post dcc:modified ?mod_time } .
    optional{ ?post dcc:created ?create_time } .
    optional{ ?post sioc:link ?url } .
   }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0ASELECT+distinct+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Fmod_time%2C+%3Fcreate_time%2C+%3Furl%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%7B%0D%0A++++++++%3Fforum+rdf%3Atype+sioct%3AMessageBoard+%3B%0D%0A+++++++++++++++sioc%3Aid+%3Fforum_name+FILTER+REGEX%28%3Fforum_name%2C%22.*mywiki*.%22%29.%0D%0A++++++++optional%7B+%3Fforum+sioc%3Acontainer_of+%3Fpost++%7D+.%0D%0A++++++++optional%7B+%3Fpost+dct%3Atitle+%3Ftitle+%7D+.%0D%0A++++++++optional%7B+%3Fpost+dcc%3Amodified+%3Fmod_time+%7D+.%0D%0A++++++++optional%7B+%3Fpost+dcc%3Acreated+%3Fcreate_time+%7D+.%0D%0A++++++++optional%7B+%3Fpost+sioc%3Alink+%3Furl+%7D+.%0D%0A++++++%7D&format=text%2Fhtml

Dump of Wiki Posts with "Conversation" Feature Enabled: Query Result

Discussion

Generic Data Space Queries

These SPARQL queries join data across serveral ODS data spaces.

Data for analyzing Tags associated with Posts that also demonstrates the use of the SKOS ontology for describing Post topics (tags)

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix dc: <http://purl.org/dc/elements/1.1/>
select ?title, ?tag, ?topic
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?s a sioc:Item.
    optional { ?s dc:title ?title }.
    ?s sioc:id ?id .
    optional { ?s sioc:topic ?topic .
               ?topic rdf:type skos:Concept .
               ?topic skos:prefLabel ?tag }
   }

Data for analyzing Tags associated with Posts that also demonstrates the use of the SKOS ontology for describing Post topics (tags): Query Result

Discussion

Generic Data Space Queries

People Network Construction that integrates data from both the FOAF and SKOS ontologies

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/elements/1.1/>
prefix dcc: <http://purl.org/dc/terms/>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
select DISTINCT ?forum_name, ?post, ?title, ?cr, ?url, ?links_to, ?tag, ?nick, ?gender, ?org, ?geodata
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum a sioct:Weblog .
    ?forum sioc:id ?forum_name.
    optional {?forum sioc:scope_of ?role } .
    optional { ?role sioc:function_of "<http://demo.openlinksw.com/dataspace/demo#this>" } .
    ?forum sioc:container_of ?post.
    optional { ?post dct:title ?title.
     ?post dcc:created ?cr.
     ?post sioc:link ?url.
     ?post sioc:links_to ?links_to.
     ?post foaf:maker ?maker } .
    optional { ?maker foaf:nick ?nick } .
    optional { ?maker foaf:name ?fname } .
    optional { ?maker foaf:gender ?gender } .
    optional { ?maker foaf:based_near ?geodata } .
    optional { ?maker foaf:organization ?org } .
    optional {?post sioc:topic ?topic .
     ?topic rdf:type skos:Concept .
     ?topic skos:prefLabel ?tag }
   }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0Aprefix+skos%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0D%0Aprefix+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0Aselect+DISTINCT+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Fcr%2C+%3Furl%2C+%3Flinks_to%2C+%3Ftag%2C+%3Fnick%2C+%3Fgender%2C+%3Forg%2C+%3Fgeodata%0D%0Awhere++++%7B%0D%0A+++++++++++%3Fforum+a+sioct%3AWeblog+.%0D%0A+++++++++++%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A+++++++++++optional+%7B%3Fforum+sioc%3Ascope_of+%3Frole+%7D+.+%0D%0A+++++++++++optional+%7B+%3Frole+sioc%3Afunction_of+%22%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%2Fdemo%23this%3E%22+%7D+.+%0D%0A+++++++++++%3Fforum+sioc%3Acontainer_of+%3Fpost.%0D%0A+++++++++++optional+%7B+%3Fpost+dct%3Atitle+%3Ftitle.%0D%0A++++++++++++++++++++++++++%3Fpost+dcc%3Acreated+%3Fcr.%0D%0A++++++++++++++++++++++++++%3Fpost+sioc%3Alink+%3Furl.%0D%0A++++++++++++++++++++++++++%3Fpost+sioc%3Alinks_to+%3Flinks_to.%0D%0A++++++++++++++++++++++++++%3Fpost+foaf%3Amaker+%3Fmaker+%7D+.%0D%0A+++++++++++optional+%7B+%3Fmaker+foaf%3Anick+%3Fnick++%7D+.%0D%0A+++++++++++optional+%7B+%3Fmaker+foaf%3Aname+%3Ffname+%7D+.+%0D%0A+++++++++++optional+%7B+%3Fmaker+foaf%3Agender+%3Fgender+%7D+.+%0D%0A+++++++++++optional+%7B+%3Fmaker+foaf%3Abased_near+%3Fgeodata+%7D+.+%0D%0A+++++++++++optional+%7B+%3Fmaker+foaf%3Aorganization+%3Forg+%7D+.+%0D%0A+++++++++++optional+%7B%3Fpost+sioc%3Atopic+%3Ftopic+.+%0D%0A++++++++++++++++++++++++%3Ftopic+rdf%3Atype+skos%3AConcept+.+%0D%0A++++++++++++++++++++++++%3Ftopic+skos%3AprefLabel+%3Ftag+%7D%0D%0A+++++++++%7D&format=text%2Fhtml&debug=on

People Network Construction that integrates data from both the FOAF and SKOS ontologies: Query Result

Weblog

Generic Data Space Queries

People Network Construction using data from Post Comments

prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix dc: <http://purl.org/dc/elements/1.1/>
prefix dcterms: <http://purl.org/dc/terms/>
select DISTINCT ?post, ?post_sioc, ?post_author, ?post_title, ?post_date, ?reply
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?post sioc:has_creator ?_x .
    ?_x sioc:id ?post_author .
    optional { ?post rdfs:seeAlso ?post_sioc } .
    optional { ?post sioc:has_reply ?reply } .
    optional { ?post dcterms:created ?post_date } .
    optional { ?post dc:title ?post_title }
  }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+sioc%3A+++%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0APREFIX+xsd%3A+++%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0D%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0APREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+dc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcterms%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0ASELECT+DISTINCT+%3Fpost%2C+%3Fpost_sioc%2C+%3Fpost_author%2C+%3Fpost_title%2C+%3Fpost_date%2C+%3Freply%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+{%0D%0A++++%3Fpost+sioc%3Ahas_creator+%3F_x+.%0D%0A++++%3F_x+sioc%3Aid+%3Fpost_author+.%0D%0A++++optional+{+%3Fpost+rdfs%3AseeAlso+%3Fpost_sioc+}+.%0D%0A++++optional+{+%3Fpost+sioc%3Ahas_reply+%3Freply+}+.%0D%0A++++optional+{+%3Fpost+dcterms%3Acreated+%3Fpost_date+}+.%0D%0A++++optional+{+%3Fpost+dc%3Atitle+%3Fpost_title+}%0D%0A}&format=text%2Fhtml

People Network Construction using data from Post Comments: Query Result

People Network Construction

Using SPARQL CONSTRUCT to Export SIOC based RDF Data Sets

CONSTRUCT based SPARQL queries are very useful when trying to expose RDF (via a SPARQL Endpoint) to RDF Data Set consumers that do not support SPARQL. In a sense, the SPARQL CONSTRUCT statements as part of a SPARQL Protocol payload deliver a Data Web (Web 3.0) Experience to Interactive-Web Clients (Web 1.0).

People Network returned as an RDF Graph

prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix dc: <http://purl.org/dc/elements/1.1/>
prefix dcterms: <http://purl.org/dc/terms/>
CONSTRUCT
  {
    ?post sioc:has_creator ?_x .
    ?_x sioc:id ?post_author .
    ?post rdfs:seeAlso ?post_sioc .
    ?post sioc:has_reply ?reply .
    ?post dcterms:created ?post_date .
    ?post dc:title ?post_title .
  }
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?post sioc:has_creator ?_x .
    ?_x sioc:id ?post_author .
    optional{ ?post rdfs:seeAlso ?post_sioc } .
    optional{ ?post sioc:has_reply ?reply } .
    optional{ ?post dcterms:created ?post_date } .
    optional{ ?post dc:title ?post_title }
  }
limit 10

People Network returned as an RDF Graph: Query Result

People Network Construction

Using SPARQL CONSTRUCT to Export SIOC based RDF Data Sets

Discussions posts details returned as an RDF Graph

prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix dcterms: <http://purl.org/dc/terms/>
CONSTRUCT
  {
   ?post dcterms:created ?created .
   ?post sioc:link ?link .
   ?post sioc:title ?title .
  }
from <http://demo.openlinksw.com/dataspace>
where
   {
    ?forum a sioct:MessageBoard .
    ?post sioc:has_container ?forum .
    optional { ?post dcterms:created ?created } .
    optional { ?post sioc:link ?link } .
    optional { ?post sioc:title ?title }
   }
limit 10

Discussions posts details returned as an RDF Graph: Query Result

People Network Construction

Using SPARQL CONSTRUCT to Export SIOC based RDF Data Sets

List of all registered Dataspace members's home pages URLs returned as an RDF Graph

prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
CONSTRUCT
  {
    ?x rdf:type sioc:User .
  }
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?x rdf:type sioc:User .
  }
limit 10

List of all registered Dataspace members's home pages URLs returned as an RDF Graph: Query Result

People Network Construction

Using SPARQL CONSTRUCT to Export SIOC based RDF Data Sets

Gallery images details for user "demo" returned as an RDF Graph

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dc: <http://purl.org/dc/elements/1.1/>
prefix dcterms: <http://purl.org/dc/terms/>
CONSTRUCT
  {
    ?post dc:title ?title .
    ?post sioc:link ?link .
    ?post sioc:links_to ?links_to .
    ?post sioc:topic ?topic .
    ?post dcterms:created ?cr
  }
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?post rdf:type sioc:Item .
    optional { ?post dc:title ?title } .
    optional { ?post sioc:link ?link } .
    optional { ?post sioc:links_to ?links_to } .
    optional { ?post dcterms:created ?cr } .
    optional { ?post sioc:topic ?topic }.
    optional { ?topic skos:prefLabel ?tag }.
    ?post sioc:has_container ?forum .
    ?forum a sioct:ImageGallery .
    ?forum sioc:scope_of ?role.
    ?role sioc:function_of ?member.
    ?member sioc:id "demo"
  }

Gallery images details for user "demo" returned as an RDF Graph: Query Result

Gallery images details for user demo returned as an RDF Graph

Using SPARQL CONSTRUCT to Export SIOC based RDF Data Sets

Community posts title and date details returned as an RDF Graph

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dc: <http://purl.org/dc/elements/1.1/>
prefix dcterms: <http://purl.org/dc/terms/>
CONSTRUCT
  {
    ?post dc:title ?title .
    ?post dcterms:created ?date
  }
from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum rdf:type sioc:Community .
    ?forum sioc:has_part ?parentf .
    ?parentf sioc:container_of ?post .
    optional { ?post dc:title ?title } .
    optional { ?post dcterms:created ?date } .
  }

Community posts title and date details returned as an RDF Graph: Query Result

Community posts title and date details returned as an RDF Graph

Using SPARQL DESCRIBE to Export SIOC based RDF Data Sets

Describe all Weblog Data Spaces

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
DESCRIBE ?forum from <http://demo.openlinksw.com/dataspace>
where
  {
    ?forum rdf:type sioct:Weblog .
  }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0ADESCRIBE+%3Fforum+from+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0Awhere%0D%0A++{%0D%0A++++%3Fforum+rdf%3Atype+sioct%3AWeblog+.%0D%0A++}+&format=text%2Fhtml&debug=on

Describe all Weblog Data Spaces: Query Result

Describe all Weblog Data Spaces

Using SPARUL to Manage SIOC based RDF Data Sets

INSERT into Graph

sparql define input:default-graph-uri <http://mygraph.com>
insert { <http://myopenlink.net/dataspace/Kingsley#this>
         <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
         <http://rdfs.org/sioc/ns#User> };

INSERT into Graph: Result

Insert Into Graph

Using SPARUL to Manage SIOC based RDF Data Sets

INSERT with expressions to calculate fields of new triples

sparql insert into graph <http://mygraph.com>
  {
   ?s <http://rdfs.org/sioc/ns#id> `iri (bif:concat (str (?o), "Idehen"))`
  }
where { ?s <http://rdfs.org/sioc/ns#id> ?o };

INSERT with expressions to calculate fields of new triples: Result

INSERT with expressions to calculate fields of new triples

Using SPARUL to Manage SIOC based RDF Data Sets

'Modify graph' may be used as a sort of 'update' operation.

sparql modify graph <http://mygraph.com> delete
   {
    ?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?o
   } insert
   {
    ?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type1> ?o
   }
   where
   {
    ?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?o
   };

sparql delete from graph <http://mygraph.com>
   {
    <http://myopenlink.net/dataspace/Caroline#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type1> <http://rdfs.org/sioc/ns#User>
   };

'Modify graph' used as a sort of 'update' operation: Result

Modify graph used as a sort of update operation
Modify graph used as a sort of update operation

Using WishList

prefix dct: <http://purl.org/dc/elements/1.1/>
PREFIX sioct: <http://rdfs.org/sioc/types#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select *
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?f a sioct:WishList.
   ?f sioc:container_of ?s .
   ?s dct:description ?descr .
   ?s dct:title ?title .
   ?s sioc:has_creator ?creator .
   ?s rdfs:label ?label .
  }

Using WishList: Query Result

Using WishList

Using OfferList

prefix dct: <http://purl.org/dc/elements/1.1/>
PREFIX sioct: <http://rdfs.org/sioc/types#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select *
from <http://demo.openlinksw.com/dataspace>
where
  {
   ?f a sioct:OfferList.
   ?f sioc:container_of ?s .
   ?s dct:description ?descr .
   ?s dct:title ?title .
   ?s sioc:has_creator ?creator .
   ?s rdfs:label ?label .
   ?s sioc:link ?link .
  }

Using OfferList: Query Result

Using OfferList

Using SPARQL_BI

Social Connections a la LinkedIn

Show the people a person directly or indirectly knows. Sort by distance and count of connections of the known person:

select ?o ?dist ( ( select count ( * )
                    where { ?o foaf:knows ?xx } ) )
where
   {
    {
     select ?s ?o where
     {
      ?s foaf:knows ?o
     }
    }
    option ( transitive,
            t_distinct,
            t_in ( ?s ) ,
            t_out ( ?o ) ,
            t_min ( 1 ) ,
            t_max ( 4 ) ,
            t_step ( 'step_no' ) as ?dist
           ) .
    filter ( ?s= <http://myopenlink.net/dataspace/person/kidehen#this> )
   }
order by ?dist
desc 3
limit 50

Social Connections a la LinkedIn: Query Result

Insert into graph

Using SPARQL_BI

Connection Between

Given two people, find what chain of acquaintances links them together. For each step in the chain show the person linked to, the graph linking this person to the previous person, the number of the step and the number of the path. Note that there may be many paths through which the people are linked.

select ?link ?g ?step ?path
where
   {
     {
       select ?s ?o ?g
       where
         {
           graph ?g
         {
       ?s foaf:knows ?o
       }
     }
     }
     option ( transitive,
              t_distinct,
              t_in ( ?s ) ,
              t_out ( ?o ) ,
              t_no_cycles,
              T_shortest_only,
              t_step ( ?s ) as ?link,
              t_step ( 'path_id' ) as ?path,
              t_step ( 'step_no' ) as ?step,
              t_direction 3 ) .
     filter ( ?s= <http://myopenlink.net/dataspace/person/kidehen#this> && ?o = <http://www.advogato.org/person/mparaz/foaf.rdf#me> )
     }
limit 20

Connection Between: Query Result

Insert into graph

ODS SIOC Reference



References


Learn More

Specifications

Tutorials

Documentation

OpenLink
SIOC
RDF
Data Spaces
SPARQL
Query
Services
Graph
URI
Class
Container
SubClass
Entities
Web Services
Atom
SOAP
Moveable
Type
XML
RPC
FOAF
SKOS
ontology
Post
topic
tags
People
Network
Construction
Comment
CONSTRUCT
Endpoint
Data Set
Protocol
Data Web
Web Clients
URL
Social
Connections
LinkedIn
knows
Sort
distance
count
person
paths
linked
OWL
Annotea