3. New Kind of Applications
● Users retain full control over their data
● Users manage and publish data on their own
● All that is needed for the application is a URI
http://researchersmap.informatik.hu-berlin.de/data/dbprofs
…
<http://www.dbis.informatik.hu-berlin.de/ … /freytag.rdf#me>
rdf:type :DBProfessor .
…
Olaf Hartig - Database Researchers Map 3
5. Implementation
● Realized with SQUIN
● Query interface to the whole Web of Data
● The whole Web as a single database
SELECT DISTINCT ?i ?label
WHERE {
?prof rdf:type <http://res ... data/dbprofs#DBProfessor> ;
foaf:topic_interest ?i .
OPTIONAL {
?i rdfs:label ?label
?
FILTER( LANG(?label)=quot;enquot; || LANG(?label)=quot;quot;)
}
}
ORDER BY ?label
SQUIN
SemWeb
Client
Lib
Olaf Hartig - Database Researchers Map 5
6. Sample Query
SELECT DISTINCT ?i ?label
WHERE {
?prof rdf:type <http://res ... data/dbprofs#DBProfessor> .
?prof foaf:topic_interest ?i .
OPTIONAL {
?i rdfs:label ?label
FILTER( LANG(?label)=quot;enquot; || LANG(?label)=quot;quot;)
}
}
ORDER BY ?label
Olaf Hartig - Database Researchers Map 6
7. Implementation (cont.)
● Realization of Researchers Map was very easy due to:
● SQUIN / SemWeb Client Lib
● Approx. 700 LOC JavaScript (incl. 100 for the queries)
● Approx. 50 LOC PHP (Mainly to set up server side proxy
due to same origin policy)
● Convenient access to SQUIN with SQUIN PHP tools
$s = 'http:// …'; // address of the SQUIN service
$q = new SparqlQuerySock( $s, '… SELECT ...' );
$res = $q->getJsonResult(); // or getXmlResult()
● SQUIN install package available: http://squin.org
Olaf Hartig - Database Researchers Map 7
8. These slides have been created by
Olaf Hartig
http://olafhartig.de
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 License
(http://creativecommons.org/licenses/by-sa/3.0/)
Olaf Hartig - Database Researchers Map 8