Virtuoso Open-Source Wiki
Virtuoso Open-Source, OpenLink Data Spaces, and OpenLink Ajax Toolkit
Advanced Search
Help?
Location: / Dashboard / Main / SIOCRefDiscussionsExample5

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:Discussion  .
    ?post sioc:has_container ?forum .
    optional{ ?post dcterms:created ?created } .
    optional{ ?post sioc:link ?link } .
    optional{ ?post sioc:title ?title }
  }
Powered By Virtuoso