VOS.TutorialREFExample4

  • Topic
  • Discussion
  • VOS.TutorialREFExample4(Last) -- DAVWikiAdmin? , 2017-06-29 07:34:58 Edit WebDAV System Administrator 2017-06-29 07:34:58

    List of Posts (Tutorials) with content HTML encoded


    PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>  
    PREFIX sioc: <http://rdfs.org/sioc/ns#> 
    PREFIX content: <http://purl.org/rss/1.0/modules/content/>
    PREFIX dc: <http://purl.org/dc/elements/1.1/>
    PREFIX foaf: <http://xmlns.com/foaf/0.1/>
    SELECT DISTINCT ?forum_name, ?title, ?post as ?url, ?content_encoded
    WHERE    
      { 
        ?forum rdf:type "Tutorial".
        ?forum sioc:description ?forum_name.
        ?forum sioc:container_of ?post. 
        ?post rdf:type foaf:Document.
        OPTIONAL { ?post dc:title ?title } .
        OPTIONAL { ?post content:encoded ?content_encoded } .
      }
    LIMIT 10
    

    Sample Data (Live Query Results)