90 likes | 258 Views
Semantic Web Technologies for Big Data A hands-on example. Antonis Koukourikos NCSR “Demokritos”. s upported by:. Example: A basic family tree. Relational Representation. CREATE TABLE `father` ( `ID` int (11) NOT NULL, `name` varchar (255) DEFAULT NULL, PRIMARY KEY (`ID`) ).
E N D
Semantic Web Technologies for Big DataA hands-on example Antonis Koukourikos NCSR “Demokritos” 2nd SemaGrow Hackathon (in conjunction with IRSS14) supported by:
Example: A basic family tree 2nd SemaGrow Hackathon (in conjunction with IRSS14)
Relational Representation CREATE TABLE `father` ( `ID` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, PRIMARY KEY (`ID`) ) CREATE TABLE `children` ( `ID` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `FatherID` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) 2nd SemaGrow Hackathon (in conjunction with IRSS14)
Semantic Representation <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.semagrow.eu/schemas/family#"xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Ontologyrdf:about=""></owl:Ontology> <owl:Classrdf:about="#Person"></owl:Class> 2nd SemaGrow Hackathon (in conjunction with IRSS14) <owl:ObjectPropertyrdf:about="#hasAncestor"> <rdf:typerdf:resource="http://www.w3.org/2002/07/owl#TransitiveProperty"/> <rdfs:domainrdf:resource="#Person"/> <rdfs:rangerdf:resource="#Person"/> </owl:ObjectProperty> <owl:ObjectPropertyrdf:about="#hasParent"> <rdfs:rangerdf:resource="#Person"/> <rdfs:domainrdf:resource="#Person"/> <rdfs:subPropertyOfrdf:resource="#hasAncestor"/> </owl:ObjectProperty>
Instance Representation <Person rdf:about="#Michael"> <rdf:typerdf:resource="#Person"/> <rdf:typerdf:resource="owl#NamedIndividual"/> <hasParentrdf:resource="#George"/> </Person> <Person rdf:about="#Lawrence"> <rdf:typerdf:resource="#Person"/> <rdf:typerdf:resource="owl#NamedIndividual"/> </Person> 2nd SemaGrow Hackathon (in conjunction with IRSS14)
Querying: SQL 2nd SemaGrow Hackathon (in conjunction with IRSS14)
Querying: SPARQL 2nd SemaGrow Hackathon (in conjunction with IRSS14)
What about David’s ancestors? PREFIX family: http://www.semagrow.eu/schemas/family# SELECT ?p WHERE {family:Davidfamily:hasAncestor* ?p}" We need a different Relational DB Schema! SPARQL 2nd SemaGrow Hackathon (in conjunction with IRSS14)
Thank you ? ? ? 2nd SemaGrow Hackathon (in conjunction with IRSS14)