Tutorial I:
SIOC Ontology Examples for
Linked Data Spaces


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 ODS data space (a collection of many application-specific data spaces) for properties assiociated 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

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

Weblog

ODS-Weblog SPARQL Queries

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"

Query Results: All Weblog Posts for a given ODS Member

Weblog

ODS-Weblog SPARQL Queries

All Weblog Posts for a given ODS Member, including the blog post content

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

Query Results: All Weblog Posts for a given ODS Member, including content

Weblog

ODS-Weblog SPARQL Queries

All Weblog Posts for a given ODS Member, including blog post 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, ?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

Query Results: Dump of all Weblog Posts for a given ODS Member, including the blog post contents and all out-bound links

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 ODS data space for properties assiociated 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

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

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

Query Results: Dump of all Wikiwords for a given Wiki

Wiki

ODS-Wiki SPARQL Queries

Dump of all WikiWords for a given Wiki, 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: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

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

Wiki

ODS-Wiki SPARQL Queries

List of Web Services (e.g., Atom Publishing [SOAP], Moveable Type [XML-RPC]) assiociated 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

Query Results: List of Web Services

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 ODS data space for properties assiociated 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

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

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

Query Results: Dump of all Events for a given Calendar

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

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

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

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

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 assiociated 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

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

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

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

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

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

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 ODS data space for properties assiociated 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:// mo.openlinksw.com/dataspace
WHERE
  {
    ?forum a sioct:BookmarkFolder .
    ?forum  sioc:container_of  ?post  .
    ?post   ?attribute         ?o
  }
ORDER BY ?attribute

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

Bookmaks

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://prl.org/dc/elments/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_t  ?url    }
  }
ORDER BY ?title

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&hould-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%2F2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftyps%23%3E%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aselect+distinct+%3Fforum_name%2C+%3Fpost%2+%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%2Fdatspace%2Fdemo%23this%3+.%0D%0A+%3Fforumsioc%3container_of+%3Fpost+.%0D%0A+optional%7B+%3Fpost+dct%3Atitle+%3Ftitle+%7D.%0D%0A+optional%7B+%3Fpost+sioc%3Alink+%3Flink+%7D+.%0D%0A+optional%7B+%3Fpst+sioc%3Alinks_to+%3Furl+%7D%0D%0A+%7D%0D%0Aorder+by+%3Ftitle&format=text%2Fhtml&debug=on

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

Bookmarks

ODS-Bookmarks SPARQL Queries

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

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.openlnksw.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-sytax-ns%23%3E%0D%0Aprefix+svc3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fservices%23%3E%0D%0Arefix+sioct%3+%3Chttp%3A%2F%2Frdfsorg%2Fsioc%2Ftypes%23%3E%0D%0Aselect+%3Fendp+%2C+%3Fproto+%0D%0Awhere+%0D%A+%7B%0D%0A+%3Fforum+a+sioct%3ABookmarkFolder+.%0D%0A+%3Fforum+svc%3Ahas_service+%3Fsvc+.%0D%0A+%3Fsvc+svc%3service_endpoint+%3Fendp+.%0D%0A+%3Fsvc+svc%3Aservice_protocol+%3Fproto+.%0D%0A+%7D%0D%0Aorder+by+%3proto&format=text%2Fhtml&debug=on

Query Results: List of Web Services

endp proto
http://id.myopenlink.net/dataspace/services/bookmarks SOAP

OpenLink DataSpaces - AddressBook




AddressBook Data Space


ODS-AdressBook and SIOC Ontology

ODS SIOC Sample Value
Data Space Clss 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/addressook/myAddressBookid>"

ODS-AddessBook Data Space Post/Entry/Item Properties

The following query scans an ODS data space for properties assiociated with Entities of Type: AdressBook

PREFIX  sioc:   <http://rdfs.org/sioc/ns#>
PREFIX  sioct:  <http://rdfs.org/sioc/types#>
SELECT DISTINCT ?attribute
FROM <http://demo.openlnksw.com/dataspace>
WHERE
  {
    ?forum a sioct:AddressBook .
    ?forum  sioc:container_of  ?post .
    ?post   ?attribute         ?o
  }
ORDER BY ?attribute

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

AddresBook

ODS-AddressBook SPARQL Queies

Dump all AddressBooks 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    sio:function_of  ?member           .
    ?member  sioc:id           ?id
  }

http://demo.openlinksw.com/sparql?deault-graph-uri=http%3A%2F%2demo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+sio%3A+%3Chttp%3A%2F%2Frfs.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+%3Frol+sioc%3Afunction_of+%3Fmember.%0D%0A+%3Fmember+a+foaf%3APerson.+%0D%0A+%7D&format=text%2Fhtml&debug=on

Query Results: Dump all AdressBook's members

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.rg/sioc/ns#>
PREFIX  sioct:  <http://rdfs.org/sioc/types#>
PREFIX  foaf:   <htp://xmlns.com/foaf/.1/>
SELECT ?member,?knows
FROM <http://demo.openlinksw.com/dataspace>
WHERE
  {
    ?s       anbsp;                sioct:AddressBook ;
       sioc:scope_of     ?role .
    ?role    sioc:funcion_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+%3Cttp%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+%Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0Aselect+%3Fmember%2C+%3Fknows%0D%0Awhere%0D0A+%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+%Fmember+foaf%3Aknows+%3Fknows%0D%0A+%7D&format=text%2Fhtml&debug=on

Query Results: Dump all AddressBook's members friends

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/elemens/1.1/>
PREFIX  dcc:    <http://purl.org/dc/terms/>
SELECT ?FN, ?nick, ?address, ?title, ?created, ?link, ?topic
FROM <http://dmo.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       ?adress  } .
    OPTIONAL { ?post  dct:title     ?title    } .
    OPTIONAL { ?post  dcc:created   ?created  } .
    OPTIONAL { ?post  sioct: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%3A2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D0Aselect+%3FFN+%3Fnick+%3Faddress+%3Ftitle+%3Fcreated+%3Flink+%3Ftopic+%0D%0Awhere%0D%0A+%7B%0D%0A+%3Fforum+a+sioct%3AAddressBoo+.%0D%0A+%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A+optional+%7B%3Fpost+vcd%3AFN+%3FFN+%7D.%0D%0A+optional+%7B%3Fpost+vcd%3AICKNAME+%3Fnick7D.%0D0A+optional+%7B%3Fpost+vcd%3AADR+%3Faddress%7D.%0D%0A+optional+%7B%3Fpost+dct%3Atitle+%3Ftitle%7D.%0D%0A+optional+%7B%3Fpost+dcc%3Acreated+%3Fcreated7D.%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

Query Results: Dump all AddressBook's contacts

AddressBook

ODS-AddressBook SPARQL Queries

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

PREFIX  rdf:    <http://www.w3.org1999/02/22-rdf-syntax-ns#>
PREFIX  svc:    <http://rdfs.org/sioc/services#>
PREFIX  sioct:  <http://rdfs.rg/sioc/types#gt;
ELECT ?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.openlinks.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-syntaxns%23%3E%0D%0Aprefix+svc%3A+3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fservices%23%3E%0D%0Aprefx+sioct%3A+%3http%3A%2F%2Frdfs.org2Fsioc%2Ftypes%23%3E%0D%0Aselect+%3Fendp+%2C+%3Fproto+%0D%0Awhere+%0D%0+%7B%0D%0A+%3Fforum+a+sioct%3AAddressBook+.%0D%0A+%3Fforum+svc%3Ahas_service+%3Fsvc+.%0D%0A+%3Fsvc+svc%3Aserice_endpoint+%3Fendp+.%0D%0A+%3Fsvc+svc%3Aservice_protocol+%3Fproto+.%0D%0A+%7D%0D%0Aorder+by+%3Fprto&format=text%2Fhtml&debug=on

Query Results: List of Web Services

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
nbsp; {
    ?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.openlnksw.com%2Fdataspace&should-sponge=&query=prefix+ioct%3A+%3Chtp%3A%2F%2Frdfs.org%2Fioc%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%3Ascop_of+%3Frole.%0D%0A+%3Frole+sioc%3Afunction_of+%3Fmember.%0D%0A+%3Fmember+%3Fattribute+%3Fo%0D%0A+%7D&format=text%2Fhtml&debug=on

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

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 nstance Identifier (URI) ID "<http://demo.openlinksw.com/datapace/demo/polls/mypolls#id>"

ODS-Poll Data Space Post/Entry/Item Properties

The followng query scans an ODS data space for properties assiociated with Entities of Type: SurveyCollection

PREFIX  rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  sioc:   <http://rdfs.org/sioc/ns#>
PREFIX  sioct:  lt;http://rdfs.or/sioc/types#>
SELECT DISTINCT ?attribute
FROM <http://demo.openlinksw.com/dataspace>
WHERE
  {
    ?forum a sioct:SurveyCollection .
    ?forum  sioc:container_of  ?post .
    ?post   ?o         ?attribute
  }
ORDER BY ?attribute

Query Results: ODS-Polls Data Space Post/Entry/Item properties

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.or/sioc/ns#>
PREFIX  sioct:  <http://rdfs.org/sioc/types#>
PREFIX  xsd:    <http://wwww3.org/2001/XMLShema#>
PREFIX  dct:    <http://purl.org/dc/elements/1.1/>
PREFIX  dcc:    <http://purl.org/dc/terms/gt;
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.openlnksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&queryprefix+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%D%0Aprefix+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E+%0D%0Aselect+DISTINCT +%3Forum_name%2C+%3Fpost%2C+%3Ftitle+%3Fcr+%3Furl+%0D%0Awhere+%7B+%0D%0A+%3Fforum+a+sioct%3ASurveyCollection.%0D%0A+%3Fforum+sio%3Aid+%3Fforum_name.%D%0A+%3Fforum+sioc%3Acope_o+%3Frole.+%0D%0A+%3Frole+sioc%3Afunction_of+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%2Fdemo%23this%3E+.%0D%0A+%3Fforum+sioc%3Acontainer_of+%3Fost.+%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

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

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 ODS data space for properties assiociated with Entities of Type: ImageGallery

PREFIX  df:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  sioc:   <http://rdfs.org/sioc/ns#>
PREFIX  sioct:  <http://rdf.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

Query Results: ODS-Photo Gallery ata Space Post/Entry/Item Properties

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/sioctypes#>
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:contaier_of  ?post           .
    OPTIONAL { ?post  dct:title      ?title     } .
    OPTIONAL { ?post  dcc:created    ?cr        } .
    OPTIONAL { ?post  sioct:link      ?link      } .
    OPTIONAL { ?post  sioc:links_to  ?links_to  } .
    OPTIONAL { ?post  sioc:content   ?content   }
  }

http://demo.openlinksw.com/sparql/?default-graph-uri=http%3A%2%2Fdemo.openlinksw.com%2Fdataspace&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E+%0D%0APREFIX+sioc3A+%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%2Fww.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.og%2Fdc%2Fterms%2F%3E+%0D%0ASELECT+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Flink%2C+%3Fcr%2C+%3Fcontent%0D%0FROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%7B%0D%0A+%3Fforum+rdf%3Atype+sioct%3AImgeGallery+.%0D%A+%3Ffrum+sioc%3Aid+%3Fforum_name.%0D%0A+%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A+optional+%7B%3Fpost+dct%3Atitle+%3Ftitle+%7D.%0D%0A+optional+%7B%3Fpot+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

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

Gallery

ODS-Photo Gallery SPARQL Queries

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

PREFIX  rdf:    <http://www.w3.org/199/02/22-rdf-syntax-ns#>
PREFIX  svc:    <http://rdfs.org/sioc/services#>
PREFIX  sioct:  <http://rdfs.rg/sioc/types#gt;
SELECT ?endp, ?proto
FROM <http://demo.openlinksw.com/dataspace>
WHERE
  {
    ?forum a  sioct:ImageGallery .
    ?forum  svc:has_service       ?svc   .
    ?svc    svc:service_endpoint  ?endp .
    ?vc    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%F22-rdf-syntax-ns%23%3E%0D%0prefix+svc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fservices%3%3E%0D%0Aprefix+sioct%3A+%3Chttp%3%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aselect+%3Fendp+%2C+%3Fproto+%0D0Awhere+%7B%0D%0A+%3Fforum+a+sioct%3AImageGallery+.%0D%0A+%3Fforum+svc%3Ahas_service+%3Fsvc+.%0D%0A+%3Fsvc+svc%3Aserviceendpoint+%3Fendp+.%0D%0A+%3Fsvc+svc%3Aservice_protocol+%3Fproto+.%0D%0A+%7D%0D%0Aorder+by+%3Fproto&format=text%2Fhtml&debug=on

Query Results: List of Web Services

Gallery

OpenLink Data Spaces - Community




Community (Group Mode) Data Space


ODS-Community and SIOC Otology

ODS SIOC Sample Value
DataSpace 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 Identifer (URI) ID "<http://demo.openlinksw.com/dataspace/demo/community/demoCommunity#id>"

ODS-Community Data Space Post/Etry/Item Properties

The folowing query scans an entire ODS data space (collection of many application specific data spaces) for properties assiociated 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

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

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.openinksw.com/dataspce>
WHERE
  {
    ?forum    rdf:type           sioc:Community .
    ?forum    sioc:has_Part      ?parentf       .
    ?parentf  sioc:container_of  ?post       .
    OPTIONAL { ?post  dct:tite  ?title } .
  }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlnksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3org%2F1999%2F2%2F22-rdf-syntax-ns%3%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%0ASEECT+%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+%3forum+sioc%3Ahas_Part+%3Fparentf+.%0D%0A+%3Fparentf+sioc%3Acontainer_of+%3Fpost+.%0D%0A+optional%7B%3Fpost+dct%3Atitle+%3Ftile%7D+.%0D%0A+%7D&format=text%2Fhtml

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

Community

OpenLink Data Spaces - Briefcase




Briefcase Data Space


ODS-Briefase and SIOC Otology

ODS SIOC Sample Value
Data Space Class Class sioc:Container
DataSpace 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/dataspac/demo/briefcase/demBriefcase#id>"

ODS-Briefcase Data Space Post/Entry/Item Properties

The folowing query scan an entire ODS data space (collection of many application specific data spacs) for properties assiociated 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

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

Briefcase

ODS-Briefcase SPARQL Queries

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

PREFIX  rdf:    <http://www.w3.org1999/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%2Fataspace&should-sponge=&query=%0D%0Aprefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F999%2F02%2F22rdf-syntax-ns%23%3E%0%0Aprefix+svc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fservices%23%3E%0D%Aprefix+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%3%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%3Asrvice_protocol+%3Fproto+.%0D%0A+}%0D%0Aorder+by+%3Fproto%0D%0A&format=text%2Fhtml&debug=on

Query Results: ODS-Briefcase List of Web Services

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:    lt;http://www.w3org/2001/XMLSchema#>
PREFIX  dct:    <http://purl.org/dc/elements/1.1/>
PREFIX  dcc:    <http://purlorg/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:containe_of  ?post           .
    OPTIONAL { ?post  dct:title      ?title     } .
    OPTIONAL { ?post  dcc:created    ?cr        } .
    OPTIONAL { ?post  sioct: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.w.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%2F2Frdfs.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%2Fc%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%A+%3Fforum+a+sioct%3Ariefcase+.%0D%0A+%3Ffrum+sic%3Aid+%3Fforum_name.%0D%0A+%3Fforum+sioc%3Acontainer_of+%3Fpost.%0D%0A+optional+%7B+%3Fpost+dct%3Atitle+%3Ftitle+%7D.%0D%0A+optional+%7B+%3Fpost+dcc3Acreated+%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

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

Briefcase

OpenLink Data Spaces - Discussion




Discussion / Conversation Data Space


ODS-Disussion 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 ODS data space for properties assiociated with Entities of Type: MessageBoard

PREFIX  rdf:    lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  sioc:   <http//rdfs.org/sioc/ns#>
PREFIX  sioct:  <http://rdfs.og/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

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

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/sio/types#>
PREFIX  dct:    <http://purl.org/dc/elements/1.1/>
PREFIX  cc:    <http://purl.rg/dc/terms/gt;
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%A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&query=%0D%0Aprefix+rdf%3A+%3Chttp%3A%2F%2Fww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0Aprefix+sioc%3A+%3Chttp%3A2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%Fsioc%2Ftypes%23%3E%0D%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0Aselect+distinct+%3Fform_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Fmod_time%2C+%3Fcreate_time%2C+%3Furl%0D%0Afrom%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0Awere+{%0D%0A+%Fforum+a+sioct%3AMessgeBoard+%3B%0D%0A+sioc%3Aid+%3Fforum_name.+%0D%0A+optional{+%3Fforum+sic%3Acontainer_of+%3Fpost+}+.%0D%0A+optional{+%3Fpost+dct%3Atitle+%3Ftitle+}+.%0D%0A+optional{+%3Fpos+dcc%3Amodified+%3Fmod_time+}+.%0D%0A+optional{+%3Fpost+dcc%3Acreated+%3Fcreate_time+}+.%0D%0A+optional{+%3Fpost+sioc%3Alink+%3Furl+}+.%0D%0A+}%0D%Alimit+10&format=text%2Fhtml&debug=on

Query Results: Discussion list

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:nbsp;   <http://purl.org/dc/terms/>
SELECT ?forum_name ?post ?title ?mod_time ?create_time ?url ?content
FROM <http://demo.openinksw.com/dataspace>
WHERE
  {
    ?forum a sioct:MessageBoard;
      sioc:id  ?forum_name .
      FILTER REGEX         ( ?form_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   sioct:link          ?url          } .
    OPTIONAL { ?post   sioc:content       ?contnt      } .
  }

http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Femo.openlinksw.com%2Fdataspace&should-sponge=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+sioc%3A+%3Chttp%3A%2F%2Frdfs.org2Fsioc%2Fns%23%3E%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felemnts%2F1.1%2F%E%0D%0APREFIX+dcc%3A+3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0ASELECT+%3Fforum_name%2+%3Fpost%2C+%3Ftitle%2C+%3Fmod_time%2C+%3Fcreate_time%2C+%3Furl%2C+%3Fcontent0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%7B%0D%0A+%3Fforum+a+sioct%3AMessageBoard+%3B%0D%0A+sioc%3Aid+%3Forum_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+%3Fpostdct%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+%3url+%7D+.%0D%0A+optional%7B+%3Fpost+sioc%3Acontent+%3Fcontent%7D.%0D%0A+%7D&format=text%2Fhtml

Query Results: Obtaining a dump of all Posts within a specific ODS-Discusson Data Space

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://prl.org/dc/tems/>
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, ".*dem*." ) } .
    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?defaultgraph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-sponge=&qery=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+ioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0APREFIX+sioct%3A+%3Chttp%3A%2F%2Fdfs.org%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felments%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurlorg%2Fdc%2Ftems%2F%3E%0D%0ASELECT+istinct+%3Fforum_name%2C+%3Fpost%2C+%3Ftitle%2C+%3Fmod_time%2C+%3Fcreate_time%2C+%3Furl%0D0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%7B%0D%0A+%3Fforum+rdf%3Atype+sioct%3AMessageBoard.%0D%0A+optional%7B+%3Fforum+sioc%Aid+%3Fforum_name.+FILTER+REGEX%28%3Fforum_name%2C%22.*demo*.%22%29+%7D.%0D%0A+optional%7B+%3Fforum+sioc%3Acontainer_of+%3Fpot+%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+dc%3Acreated+%3Fcreate_time+%7D+.%0D%0A+optional%7B+%3Fpost+sioc%3Alink+%3Furl+%7D+.%0D%0A+%7D&format=text%2Fhtml

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

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/elemets/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_nme, ".*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?deault-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&should-spong=&query=prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-synta-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%2Ftems%2F%3E%0D%0ASELECT+distinct+%3Fforum_name%2C+%3Fpost%2C%3Ftitle%2C+%Fmod_time%2C+%3Fcreat_time%2C+%3Furl%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0AWHERE+%7B0D%0A+%3Fforum+rdf%3Atype+sioct%3AMessageBoard+%3B%0D%0A+sioc%3Aid+%3Fforum_nme+FILTER+REGEX%28%3Fforum_name%2C%22.*mywiki*.%22%29.%0D%0A+optional%7B+%3Fforum+sioc%3Acontainer_of+%3Fpost+%7D+.%0D%0A+optional%7B+%3post+dct%3Atitle+%3Ftitle+%7D+.%0D%0A+optional%7B+%3Fpost+dcc%3Amodified+%3Fmod_time+%7D+.%0D%0A+optional%7B+%3Fpost+dcc%3Acreated+%3Fcreate_time+%7+.%0D%0A+optional%7B+%3Fpost+sioc%3Alink+%3Furl+%7D+.%0D%0A+%7D&format=text%2Fhtml

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

Discussion

Generic Data Space Queries

SPARQL queries can also join data across serveral ODS data spaces.

This example also demonstrates use of the SKOS ontology for describing topics (i.e. tags) attached to posts

PREFIX  rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos:   <http://www.w3.org/2004/02/skos/core#>
PREFIX  sioc:   <htp://rdf.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 }
  }

Query Results: Data for analyzing Tags assiociated with Posts

Discussion

Generic Data Space Queries

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

PREFIX  rdf:    <http://www.w3.org/199/02/22-rdf-syntax-ns#>
PREFIX  sioc:   <http://rdfs.org/sioc/ns#>
PREFIX  sioct:  <http://rdfs.org/sioc/types#>
PREFIX  xsd:    <http://www.w.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
nbsp; {
    ?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%A%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%D%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%0%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0Aprefix+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Ftems%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.cm%Ffoaf%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+%3Fgeoata%0D%0Awhere+%7B%0D%0A+%3Fforum+a+sioct%3AWeblog+.%0D%0A+%3Fforum+sioc%3Aid+%3Fforum_name.%0D%0A+optional+%7B%3Fforum+sioc%3Ascope_of+%3Frle+%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+dcc3Acreated+%3Fcr.%0D%0A+%3Fpost+sioc%3Alink+%3Furl.%0D%0A+%3Fpost+sioc%3Alinks_to+%3Flinks_to.%0D%0+%3Fpost+foaf%3Amaker+%3Fmaker+%7D+.%0D%0A+optional+%7B+%3Fmaker+foaf%3Anick+%3Fnick+%7D+.%0D%0A+optional+%7B+%3Fmaker+foaf%3Anam+%3Ffname+%7D+.+%0D%0A+optional+%7B+%3Fmaker+foaf%3Agender+%3Fgender+%7D+.+%0D%0A+optional+%7B+%3Fmaker+foaf%3Abased_near+%3Fgeodata+%7D+.+%0D%0A+ptional+%7B+%3Fmaker+foaf%3Aorganization+%3Forg+%7D+.+%0D%0A+optional+%7B%3Fpost+sioc%3Atopic+%3Ftopic+.+%0%0A+%3Ftopic+rd%3Atyp+skos%3AConcept+.+%0D%0A+%3Ftopic+skos%3AprefLabel+%3Ftag+%7D%0D%0A+%7D&format=text%2Fhtml&debug=on

Query Results: People Network Construction that integrates data from bothh the FOAF and SKOS ontologies

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/200/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/gt;
PREFIX  dcterms:  <http://purl.rg/dc/terms/>
SELECT DISTINCT ?post, ?post_sioc, ?post_author, ?post_title, ?post_date, ?reply
FROM <ttp://demo.openlinksw.com/dataspace>
WHERE
  {
    ?post  sioc:has_creator  ?_x       .
    ?_x    sioc:id           ?post_author .
    OPTIONAL { ?post  rds: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-raph-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%2Frdfsorg%2Fsioc%2Ftypes%23%3E%0D%0APREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0APREFIX+xsd%3+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0D%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%22000%2F01%2Frdf-schema%23%3E%0D%0APREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0AREFIX+dc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcterms%3A+%3Chttp%3A%2F%2Fpul.org%2Fdc%2Fterms%2F%3E%0D%0ASELECT+DISTINCT +%3Fpost%2C+%3Fpost_sioc%2C+%3Fpos_authorg%2C+%3Fpost_title%2C+%3Fpost_date%2C+%3Freply%0D%0AFROM+%3Chttp%3A%2F%2Fdemo.openinksw.com%2Fdataspace%3E%0D%0AWHERE+{%0D%0A+%3Fpost+sioc%Ahas_creator+3F_x+.%0D%0A+%3F_x+sic%3Aid+%3Fpost_author+.%0D%0A+optional+{+%3Fpost+rdfs%3AseeAlso+%3Fpost_sioc+}+.%0D%0A+optional+{+%3Fpost+sioc%3Ahas_rply+%3Freply+}+.%0D%0A+optional+{+%3Fpost+dcterms%3Acreated+%3Fpost_date+}+.%0D%0A+optional+{+%3Fpost+dc%3Atitle+%3Fpost_title+}%0D%0A}&frmat=text%2Fhtml

Query Results: People Network Constuction using data from Post Comments

PeopleNetworkConstruction

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 statement is a part of a SPARQL Protocol payload which delivers a Data Web (Web 3.0) Experience to Interactive-Web and Social-Web Clients (Web 1.0 & 2.0).

People Network returned as a RDF Graph

PREFIX  sioc:     <http://rdfs.org/sioc/ns#>
PREFIX  sioct:    <http://rdfs.org/sioc/tpes#>
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  cterms:  <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

Query Results: People Network returned as a RDF Graph

People Network Construction

Using SPARQL CONSTRUCT to Export SIOC based RDF Data Sets

Discussion post details returned as a RDF Graph

PREFIX  sioc:     <http://rdfs.org/sioc/ns#>
PREFIX  sioct:    <http://rdfs.org/sioc/typs#>
PREFIX  rdf:      <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  dcterms:  <http:/purl.org/dc/tems/>
CONSTRUCT
  {
    ?post  dcterms:created  ?created .
    ?post  sioc:link        ?link .
    ?post  sioc:title       ?title   .
  }
FROM <http://demo.openlinksw.com/dataspace>
WHERE {
    ?forum a  sioct:MesageBoard .
    ?post   sioc:has_container  ?forum .
    OPTIONAL    { ?post  dcterms:created  ?created } .
    OPTIONAL    { ?post  sioc:link        ?link } .
    OPTIONAL    { ?post  sioc:title       ?title  }
}
LIMIT 10

Query Results: Discussions posts details returned as a RDF Graph

People Network Construction

Using SPARQL ONSTRUCT to Exprt SIOC based RDF Data Sets

List of all registered Dataspace members homepage URLs - returned as a 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  <htp://rdfs.org/sioc/types#>
CONSTRUCT
  {
    ?x  rdf:type  sioc:User
  }
FROM <http//demo.openlinksw.com/dataspace>
WHERE
  {
     ?x  rdf:type  sioc:User
  }
LIMIT 10

Query Results: List of all registered Dataspace members homepage URLs - returned as a RDF Graph

People Network Construction

Using SPARQL CONSTRUCT to Export SIOC based RDF Data Sets

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

PREFIX  rdf:      <http://www.w3.org1999/02/22-rdf-syntax-ns#>
PREFIX  sioc:     <http://rdfs.org/sioc/ns#>
PREFIX  sioct:    <http://rdfs.og/sioc/typs#
PREFIX  sos:     <http://www.w3.org/2004/02/skos/core#>
PREFIX  xsd:      <http://www.w3.org/001/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:creaed  ?c
  }
FROM <http://demo.openlinksw.com/dataspace>
WHERE
  {
     ?post    rdf:type            sioc:Item .
     OPTIONAL { ?post   dc:title         ?title     } .
     OPTIONAL { ?post   sioc:lin        ?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_containernbsp; ?forum .
     ?forum   a                   sioct:ImageGallery .
     ?forum   sioc:scope_of       ?role          
     ?role    sioc:function_of    ?member         .
     ?member  sioc:id             "demo"
  }

Query Results: Gallery image details for user "demo" returned as a RDF Graph

Gallery images details for user demo returned as a RDF Graph

Using SPARQL CONSTRUCT to Export SIOC based RDF Data Sets

Community post title and date details returned as a RDF Graph

PREFIX  rdf:      <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  sioc:     <http://rdfs.org/sioc/ns#>
PREFIX  sioct:    <http://rdf.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  dctems: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   }
  }

Query Results: Community post title and date details returned as a RDF Graph

Community posts title and date details returned as a 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%2Ftype%23%3E%0D%0ADESCRIBE+%3Fforum+from+%3Chttp%A%2F%2Fdemo.openlinksw.com%2Fdataspace%3E%0D%0Awhere%0D%0A+{%0D%0A+%3Fforum+rdf%3Atype+sioct%3AWeblog+.%0D%0A+}+&format=text%2Fhtml&debug=on

Query Results: Describe all Weblog Data Spaces

Describe all Weblog Data Spaces

Using SPARUL to Manage SIOC based RDF Data Sets

INSERT into Graph

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

INSERT
  INTO GRAPH <http://mygraph.com>
    { ?s  <http://rdfsorg/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

sing SPARUL to Manage SIOC based RDF Data Sets

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

MODIFY
  GRAPH <http://mygraph.com>
  DELETE
    { ?s  <http://ww.w3.org/1999/02/22-rdf-syntax-ns#type>  ?o
    }
  INSERT
    { ?s  <http://ww.w3.org/1999/02/22-rdf-syntax-ns#type1> ?o
    }
  WHERE
    { ?s  <htp://www.w3.org/1999/02/22-rdf-syntax-ns#type2>  ?o
    };

DELETE   FROM GRAPH <http://mygraph.com>
    { <http://myopenlink.net/dataspace/Caroline#this>   <http://www.w3.org/1999/02/2-rdf-syntax-ns#type1>   <htp://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
  }

Query Results: Using WishList

Using WishList

Using OfferList

PREFIX  dct:    <http://purl.org/c/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 siot: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
  }

Query Results: Using OfferList

Using OfferList

Using SPARQL_BI

Social Connections a la LinkedIn

Show the people a person directly or indirectly know.

Sort by distance and count of connections of the known person:

SELECT ?o, ?dist (( SELECT COUNT (*) WHERE { ?o foaf:knows ?xx } ))
WHERE
  {
    { SELECT ?s, ? WHERE { ?s foaf:knows ?o } } .
    OPTION( TRANSITIVE, T_DISTINCT , T_IN(?s), T_OUT(?o), T_IN(1), T_MAX(4) T_STE('step_no') as?dist ) .
    FILTER ( ?s = <http://www.w3.org/People/Berners-Lee/card#i> )
  }
ORDER BY ?dist
DESC 3
LIMIT 50

Query Results: Social Connections a la LinkedIn

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 { GRAH ?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://www.w3.org/People/Berners-Lee/card#i> , ?o = <http://myopenlink.net/dataspace/person/kidehen#this> )
  }
LIMIT 20

Query Results: Connection Between

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
Moveble
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
Linkedn
knows
Sort
distance
count
person
paths
linked
OWL
Annotea