ODS.SIOCRefBlogExample4

  • Topic
  • Discussion
  • ODS.SIOCRefBlogExample4(1.1) -- DAVWikiAdmin? , 2017-06-13 06:06:08 Edit WebDAV System Administrator 2017-06-13 06:06:08

    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
    WHERE    { 
               ?forum a sioct:Weblog .
               ?forum sioc:id ?forum_name.
               ?forum sioc:scope_of ?role. 
               ?role sioc:function_of ?f . filter( ?f like '%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}
             } 
    

    Sample Data (Live Query Results)