The Semantic Web in ActionKennissystemen, November 2009Rinke Hoekstra
OverviewThe Semantic WebLanguages and IntegrationStorage and QueryingLinked (Open) DataScalability issuesBrowsing and ViewingDEMOs… if there’s time …OWL in Action11/30/092
The Semantic Web IdeologyIdentity is everythingPartial solutions are great too!Layer cake11/30/093OWL
Semantic WebIntially
`Metadata’ for web pages
Since ~2006
`Web of Data’
Semantic web as data source in its own right
Linked Data
A ‘Databaseesque’ Web
RDF Triple stores
Query languages11/30/094
LanguagesMultiple Languages
RDF, RDFS and OWL
Multiple SyntaxesRDF/XML, Turtle (Restricted N3), NtripleFunctional Syntax, Manchester Syntax, OWL XMLRDF
Triples
Distributed
Always about something else
... but can be about other RDF triples as well.11/30/095
Languages: RDF(S)/XML<rdf:RDFxmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#”xmlns:rdfs="http://www.w3.org/TR/rdf-schema/"xmlns:owl=“http://www.w3.org/2002/07/owl#”xmlns:uva=“http://www.uva.nl/rdf#”xmlns=“http://www.uva.nl/people”> <rdf:Descriptionrdf:ID=“#radboud”>  <rdf:typerdf:resource=“http://www.uva.nl/rdf#AssociateProfessor”/>  <uva:name>RadboudWinkels</uva:name>  <uva:teachesrdf:resource=“http://www.uva.nl/courses#ks2009”/> </rdf:Description> <uva:Courserdf:about=“http://www.uva.nl/courses#ks2009”/> <rdfs:Classrdf:about=“http://www.uva.nl/rdf#AssociateProfessor”>  <rdfs:subClassOfrdf:resource=“http://www.uva.nl/rdf#StaffMember”/> </rdfs:Class><owl:ObjectPropertyrdf:about=“http://www.uva.nl/rdf#teaches”>   <rdfs:domainrdf:resource=“http://www.uva.nl/rdf#Professor”/>   <rdfs:rangerdf:resource=“http://www.uva.nl/rdf#Course”/> </owl:ObjectProperty></rdf:RDF>11/30/096
Languages: Turtle@prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>.@prefix rdfs:<http://www.w3.org/TR/rdf-schema/>.@prefix owl:<http://www.w3.org/2002/07/owl#>.@prefix uva:<http://www.uva.nl/rdf#>.@prefix courses:<http://www.uva.nl/courses#>.@prefix :<http://www.uva.nl/people#>.uva:AssociateProfessor a rdfs:Class;rdfs:subClassOfuva:StaffMember.uva:teaches aowl:ObjectProperty;rdfs:domainuva:AssociateProfessor;rdfs:rangeuva:Course.:radboud a uva:AssociateProfessor;uva:name ”RadboudWinkels”^^xsd:string;uva:teachescourses:ks2009.courses:ks2009 a uva:Course.11/30/097
Languages: FS11/30/098Namespace(=<http://www.uva.nl/people#>)Namespace(owl=<http://www.w3.org/2002/07/owl#>)Namespace(uva=<http://www.uva.nl/rdf#>)Namespace(courses=<http://www.uva.nl/courses#>)Declaration(Class(uva:Course))Declaration(Class(uva:StaffMember))Declaration(Class(uva:AssociateProfessor))SubClassOf(uva:AssociateProfessoruva:StaffMember)Declaration(DataProperty(uva:name))Declaration(ObjectProperty(uva:teaches))ObjectPropertyDomain(uva:teachesuva:AssociateProfessor)ObjectPropertyRange(uva2:teaches uva:Course)Declaration(Individual(courses:ks2009))Declaration(Individual(radboud))ObjectPropertyAssertion(uva:teachesradboud courses:ks2009)DataPropertyAssertion(uva:nameradboud "RadboudWinkels")
IntegrationHow to add this ‘meta’ to my ‘data’?Three options:Old fashioned HTML:<link rel='meta' type='application/rdf+xml' href='http://www.leibnizcenter.org/~hoekstra/foaf.rdf' title='FOAF'> HTTP 303 `see other’http://www.w3.org/TR/swbp-vocab-pub/Inline (RDFa/GRDDL)11/30/099
Integration: 303 See Other (Demo)http://www.metalex.eu/metalex11/30/0910
Integration: Inline RDFaAttributes on XHTML elementshttp://www.w3.org/TR/xhtml-rdfa-primerGRDDLGleaning Resource Descriptions from Dialects of LanguagesExplicit reference to (XSL) transformationhttp://www.w3.org/TR/grddl/11/30/0911
Integration: RDFa ExampleIn XHTML:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"          "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"><html xmlns:cal="http://www.w3.org/2002/12/cal/ical#">    <head><title>Jo's Friends and Family Blog</title></head>    <body>    <p instanceof="cal:Vevent">        I'm holding        <span property="cal:summary">one last summer Barbecue</span>,        on        <span property="cal:dtstart" content="20070916T1600-0500">            September 16th at 4pm.        </span>    </p>    </body></html>In RDF:_:blanknode0   rdf:type cal:Vevent;    cal:summary ”one last summer Barbecue";   cal:dtstart "20070916T1600-0500" .11/30/0912
Integration: GRDDLIn HTML/XML instance documents:<html xmlns="http://www.w3.org/1999/xhtml"      xmlns:grddl='http://www.w3.org/2003/g/data-view#'      grddl:transformation="glean_title.xsl			http://www.w3.org/2001/sw/grddl-wg/td/getAuthor.xsl”>In XML Schema documents: <xsd:annotation>    <xsd:appinfo>      <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">	<rdf:Description rdf:about="http://www.metalex.eu/latest">	  <grddl:namespaceTransformation	      rdf:resource=”http://www.metalex.eu/grddl/metalex2owl.xsl" />	</rdf:Description>      </rdf:RDF>    </xsd:appinfo>  </xsd:annotation>11/30/0913
Storage (on the web)As documents.rdf, .n3, .turtle, .htmlRDF triple storesSesame, Joseki, 4Store, AllegroGraph, OpenLink Virtuoso, SDB/TDB, Open Calais, SWI Prolog Reasoners ‘on top’, or via DIGPellet, OWLIM, etc.SPARQL EndpointsResults as JSON, XML, CSV etc.11/30/0914
QueryingOriginally many languagesSPARQL, nRQL, SeRQL, etc. SPARQL: http://www.w3.org/TR/rdf-sparql-query/ExamplePREFIX course: <http://www.uva.nl/courses#>PREFIX uva: <http://www.uva.nl/rdf#>SELECT ?nameWHERE  { ?x uva:teaches course:ks2007.    ?x uva:name ?name }?x binds with <http://www.uva.nl/people#radboud> ?name binds with “Radboud Winkels”^^xsd:string11/30/0915
Querying (2)SPARQL 1.0select, construct, from, optional, filterNegation via unbound variableSPARQL 1.1update, negation, aggregation, subqueries 11/30/0916
The Web of Data… does it exist?11/30/0917
Linked Open Data11/30/0918
11/30/0919November 2009: 13.1 Billion triples, 142 Million links
But there’s moreLate additions…
New York Times archives
Now 5k names, with 4 references to LOD
Will grow to > 30k
Reuters
OpenCalais automated tagging
Soon to come
Data.gov (via RPI)
Whitehouse.gov (via Drupal)
Data.gov.uk (directly)
European Parliament (MetaLex+RDFa)11/30/0920

Ks2009 Semanticweb In Action