You are here:
/ Dashboard / Main / SIOCRefDocs

List of Documentation classes


prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select distinct ?class 
from <http://demo.openlinksw.com/Doc> 
where { ?o rdf:type ?class }

Sample Data (Live Query Results)

  • Click *Here* for an Interactive-Web View of Virtuoso Documentation.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Documentation classes.

List of all Documentation files with details:


prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix doc: <http://demo.openlinksw.com/schemas/doc#>
prefix bibo: <http://purl.org/ontology/bibo/>
select * 
from <http://demo.openlinksw.com/Doc> 
where { 
?file rdf:type doc:File .
?file rdf:type bibo:Article .
?file bibo:identifier ?ident .
?file bibo:author ?author .
?file doc:collection ?collection .
?file doc:type ?type .
?file bibo:presentedAt ?presented .
?file bibo:url ?url .
}

Sample Data (Live Query Results)

  • Click *Here* for an Interactive-Web View of Virtuoso Documentation.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Documentation files.

List of all Documentation files paths:


prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix doc: <http://demo.openlinksw.com/schemas/doc#>
prefix bibo: <http://purl.org/ontology/bibo/>
select * 
from <http://demo.openlinksw.com/Doc> 
where { 
?file rdf:type doc:DocPath .
}

Sample Data (Live Query Results)

  • Click *Here* for an Interactive-Web View of Virtuoso Documentation.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Documentation files paths.

List of all Documentation Collections


prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix doc: <http://demo.openlinksw.com/schemas/doc#>
prefix bibo: <http://purl.org/ontology/bibo/>
select * 
from <http://demo.openlinksw.com/Doc> 
where 
  { 
    ?collection rdf:type doc:Collection .
    ?collection rdf:type bibo:Collection .
    ?collection bibo:identifier ?identifier .  
    ?collection bibo:author ?author .
  }

Sample Data (Live Query Results)

  • Click *Here* for an Interactive-Web View of Virtuoso Documentation.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Documentation Collections.

List of all Documentation Files Properties


prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix doc: <http://demo.openlinksw.com/schemas/doc#>
select * 
from <http://demo.openlinksw.com/Doc> 
where 
  { 
    ?property rdf:type doc:Property .
    optional { ?property doc:name ?name } .
    optional { ?property doc:type ?type } .
    optional { ?property doc:value ?value } .
    optional { ?property doc:belongs_to_collection ?belongs_to_collection } .
    optional { ?property doc:belongs_to_file ?belongs_to_file } .
  }

Sample Data (Live Query Results)

  • Click *Here* for an Interactive-Web View of Virtuoso Documentation.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Documentation Files Properties.

List of all Documentation Search Patterns


prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix doc: <http://demo.openlinksw.com/schemas/doc#>
select * 
from <http://demo.openlinksw.com/Doc> 
where 
  { 
    ?search rdf:type doc:Search .
    optional { ?search doc:anch ?anch} .
    optional { ?search doc:text ?text} .
    optional { ?search doc:belongs_to_file ?belongs_to_file } .
  }
LIMIT 100

Sample Data (Live Query Results)

  • Click *Here* for an Interactive-Web View of Virtuoso Documentation.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Documentation Search Patterns.

OBSOLETE queries: Documentation SIOC Reference

This article outlines the mapping of Documentation data to the SIOC ontology.

Note: You can run most (if not all) of the queries with minimal modification using the following SPARQL Query Services: http://demo.openlinksw.com/sparql/

Documentation SIOC Sample Value
Documentation rdf:type sioc:Space
Section rdf:type sioc:Container
Post rdf:type foaf:Document
Post subclass of sioc:Item
Post content sioc:content

List of Documentation sioc:Post attributes


   * content
   * has_container

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
SELECT distinct ?attribute
FROM <http://demo.openlinksw.com/doc/html>
WHERE 
  {
    ?forum a sioc:Container .
    ?forum rdf:type "Documentation" .
    ?forum sioc:container_of ?post .
    ?post ?attribute ?o  
   }
ORDER BY ?attribute

Sample Data (Live Query Results)

  • Click *Here* for an Interactive-Web View of Virtuoso Documentation.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Documentation.

List of Containers(Chapters) and foaf:Documents(Subchapters)


PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>  
PREFIX sioc: <http://rdfs.org/sioc/ns#> 
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT DISTINCT ?forum_name, ?title, ?post as ?url, ?created_at
FROM <http://demo.openlinksw.com/doc/html> 
WHERE    
  { 
    ?forum rdf:type "Documentation".
    ?forum sioc:description ?forum_name.
    ?forum sioc:container_of ?post. 
    ?post rdf:type foaf:Document.
    optional{ ?post dc:title ?title } .
    optional{ ?post dcterms:created ?created_at} .
    optional{ ?post sioc:description ?description} .
  }
ORDER BY DESC (?created_at)

Sample Data (Live Query Results)

  • Click *Here* for an Interactive-Web View of Virtuoso Documentation.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Documentation.

List of Posts (Documentation Subsections)


PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>  
PREFIX sioc: <http://rdfs.org/sioc/ns#> 
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
FROM <http://demo.openlinksw.com/doc/html> 
WHERE    
  { 
    ?forum rdf:type "Documentation".
    ?forum sioc:description  ?forum_name.
    ?forum sioc:container_of ?post. 
    ?post rdf:type foaf:Document.
    optional{ ?post dc:title ?title } .
    optional{ ?post sioc:content ?content} .
  }
LIMIT 10

Sample Data (Live Query Results)

  • Click *Here* for an Interactive-Web View of Virtuoso Documentation.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Documentation.

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
FROM <http://demo.openlinksw.com/tutorial> 
WHERE    
  { 
    ?forum rdf:type "Documentation".
    ?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)

  • Click *Here* for an Interactive-Web View of Virtuoso Documentation.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Documentation.
    OBSOLETE queries ---

References

Documentation RDF Views

Specs

FAQs

Presentations

Tutorials

Learn More

Virtuoso and the Virtuoso Website are Copyright (C) OpenLink Software 2006-
SourceForge.net Logo