VOS.SIOCRefDiscussionsExample2

  • Topic
  • Discussion
  • VOS.SIOCRefDiscussionsExample2(Last) -- DAVWikiAdmin? , 2017-06-13 05:47:59 Edit WebDAV System Administrator 2017-06-13 05:47:59

    Obtaining a dump of all Posts within a specific ODS-Discussion 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, ?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}.
          }
    

    Sample Data (Live Query Results)

    • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against an ODS Discussion Data Space.