RDFa Inside Category
This category contains all pages that have embedded RDF (RDFa using SafeHTML() macros) inside.
Index
Contents
Note: To add a page to this category, add a link to this page on the last line of the page. You can add multiple categories to a page.
1. List of pages in this category
2. Resources
3. Example Queries
3.1. FOAF: Name and mail of a person
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name ?mail
WHERE {
?x foaf:name ?name ;
foaf:mbox ?mail .
}
3.2. DC: Author and subject info of a page
PREFIX dc: <http://purl.org/dc/elements/1.1/>
SELECT *
WHERE {
?page dc:creator ?person ;
dc:subject ?topics .
}
3.3. GEO, FOAF: Position of a person
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
SELECT ?person ?prop ?val
WHERE {
?person foaf:based_near ?loc .
?loc ?prop ?val .
}
3.4. DC, FOAF: Author and subject info of a page
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT *
WHERE {
?page dc:creator ?person .
?person foaf:name ?name ;
foaf:mbox ?mail .
} Note: This query works only on a merged RDF graph, i.e. using the experimental feature category-based harvesting of the RDFa In Wiki Interface (RiWi). This feature allows you to specify a category wiki page (as e.g. this one) and automatically creates a merged RDF graph of all its pages (actually of all the embedded RDFa).