phpBB SIOC Reference

What is it about?

Unobtrusive generation of RDF instance data from phpBB. You simply use phpBB as-is while reaping the benefit of "RDF Views" into your bulletin board data via the SIOC Ontology. In addition, you attain transparent integration between phpBB and NNTP such that phpBB data becomes accessible to NNTP aware applications.

Why is it important?

Unified Storage of heterogenous data originating from a variety of applications and associated protocols that is exposed as RDF instance data. Thus, benefits include:

How can one use this feature?

Can I See This In Action Anywhere?

Key phpBB to SIOC Mappings

phpBB SIOC Sample Value
Instance rdf:type sioc:Container
Instance Type rdf:type sioc:Forum
Instance name sioc:name http://demo.openlinksw.com/phpBB2/viewforum.php?f=1

Dump of all phpBB Forums


PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX dct: <http://purl.org/dc/elements/1.1/>
PREFIX dcc: <http://purl.org/dc/terms/>
SELECT *
FROM <http://demo.openlinksw.com/phpBB2_v/>
WHERE 
  {
    ?forum rdf:type sioc:Forum.
    optional{ ?forum sioc:id ?id }.
    optional{ ?forum sioc:name ?name }.
    optional{ ?forum dct:description ?descr }.
    optional{ ?forum dct:title ?title }.
  }
Sample Data (Live Query Results)

Dump of phpBB Posts


PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX dct: <http://purl.org/dc/elements/1.1/>
SELECT *
FROM <http://demo.openlinksw.com/phpBB2_v/>
WHERE 
  {
    ?forum rdf:type sioc:Forum.
    optional{ ?forum sioc:name ?name }.
    optional{ ?forum sioc:container_of ?post  } .
    optional{ ?post dct:title ?title } .
    optional{ ?post sioc:content ?content } .
  }
LIMIT 10
Sample Data (Live Query Results)

Dump of phpBB Groups and their members


PREFIX sioc: <http://rdfs.org/sioc/ns#>
SELECT ?grp ?username
FROM <http://demo.openlinksw.com/phpBB2_v/>
WHERE 
  {
    ?group a sioc:Usergroup .
    optional{ ?group sioc:name ?grp }.      
    optional{ ?group sioc:has_member ?member} .
    optional{ ?member sioc:name ?username} .
  }
ORDER BY DESC (?grp) 
Sample Data (Live Query Results)

Dump of phpBB Users details


PREFIX sioc: <http://rdfs.org/sioc/ns#>
SELECT *
FROM <http://demo.openlinksw.com/phpBB2_v/>
WHERE
  {
    ?user a sioc:User .
    optional{ ?user sioc:name ?name}.
    optional{ ?user sioc:id ?id}.
    optional{ ?user sioc:email ?email}.
  }
Sample Data (Live Query Results)

Reference

See also

CategoryRDF CategorySIOC CategorySPARQL