Weblog Data Space
Key ODS-Weblog to SIOC Mappings
Data Space Post/Entry/Item Properties (sioc:Post predicates)
* attachment
* content
* has_container
* has_creator
* has_reply
* id
* link
* links_to
* reply_of
* topic (tags)
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:Weblog .
?forum sioc:container_of ?post .
?post ?attribute ?o
}
ORDER BY ?attribute
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> .
?forum sioc:container_of ?post.
optional{ ?post dct:title ?title }.
optional{ ?post dcc:created ?cr }.
optional{ ?post sioc:link ?url }.
}
ORDER BY DESC (?cr)
Dump all Weblog Web Services
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 ?endp , ?proto
FROM <http://demo.openlinksw.com/dataspace>
WHERE {
?forum a sioct:Weblog .
?forum sioc:has_service ?svc .
?svc sioc:service_endpoint ?endp .
?svc sioc:service_protocol ?proto .
}
ORDER BY ?proto
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of this Data Space
- Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of blog posts.
Dump of all Weblog Posts for a given ODS Member that includes 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> .
?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}
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of this Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of blog posts.
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> .
?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}
}
Sample Data (Live Query Results)
- Click *Here* for an Interactive-Web View of this Data Space
- Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of blog posts.
References
Specs
FAQs
Presentations
Tutorials