SlideShare a Scribd company logo
NONOSQLArchitecture Patterns for Semantic Web ApplicationsBrian PanullaPenn State Web 2011 Conference
Twitter: @bpanulla(c)2010 Google, Imagery (c)2010 TerraMetrics, NASA, Map data (c)2010 Europa Technologies, Google, INEGI, AND
Three things the Semantic Web is not(mostly)
1. Semantic HTML
2. Warmed-over AIhttp://www.movieprop.com/tvandmovie/terminator/t3endoskeletons1.jpg
3. Magichttp://bostonist.com/attachments/Anna%20Edwards/109-gob-magic2.jpg
Who cares?
SemanticWebhttp://xkcd.com/773/
On NoSQL...
Architecture Patterns for Semantic Web Applications
NoSQL: Key/Value and Graphs
On Linked Data...
Architecture Patterns for Semantic Web Applications
When things go wrong
Linked Data - 2008http://richard.cyganiak.de/2007/10/lod/
Linked Data - 2008http://richard.cyganiak.de/2007/10/lod/	Last updated: 2010-09-22
Technology Primer
RDF: Framework for knowledge representationDeclares resourcesSpecifies properties of resourcesW3C standard since 1999http://www.w3.org/RDF/
What is a Resource?Everything on the web (or not) is a resource.UniformResourceLocator
RDF is not XML...but occasionally dresses up like itXMLN-TriplesN3TurtleJSONRDFa		 in HTML...
URIsResources are identified by a Uniform Resource Identifier (URI)Can be found in your XHTML DTD and html tag’s xmlns attribute:
URIs... Are not necessarily URLshttp://webconference.psu.eduhttp://brian.panul.lahttp://alumni.psu.edu/brian.panulla
TriplesRDF is expressed as triples of URIs:subject (“Penn State”) - resourcepredicate (”is a") - propertyobject (”University”) - resourceIs aPennStateUniversity
TriplesAnother example:subject (“Brian Panulla”)predicate (”presented at")object (”psuweb11”)presented AtBrianPanullapsuweb11
Triples to GraphsUnitedStates ofAmericaCity ofPortlandState ofOregonNorthAmerica   State ofWashington   State ofCaliforniaCanadaNATOIs abordersIs inHeld AtIs inMember ofpresented AtIs inbordersMember ofattendedIs inIs inIs aIs located inIs inPSUWEB11PennStateBrianPanullaPortlandStateUniversity
RDF SchemasRDFS provides limited Set Theory featuressubClassOfsubPropertyOfDomainRangeThink of classes in RDFS as sets rather than OOP classes
OntologiesOntology is the study of being or reality.A Formal Ontology is a specification of a conceptualization (Gruber, 1995)Aristotle
Defining an ontologyWeb Ontology Language (OWL)Version 2.0		(October 2009)http://www.w3.org/TR/owl2-overview/Yes, rly.
Some RDFS/OWL FeaturesClassesSub-classEquivalent ClassesDisjoint ClassesCardinality constraints (max/min)IndividualsSame IndividualPropertiesSub-propertyEquivalentInverseSymmetricTransitive
Protégéhttp://protege.stanford.edu/
Triple StoresGraph database that knows RDFQuad Stores: triple store that includes provenance		“where did the data come from?”Various stores provideTransactional / non-TransactionalIn-Memory / File system / RDBMS storage
Popular Triple StoresHP/Apache JenaPellet ReasonerStorageIn memoryRDBMS (transactions)Filesystem storage (high performance)Open Source
Popular Triple StoresFranz AllegroGraph (server)Virtuoso Universal Server (server)Mulgara  (RESTful service, OSS)Redland (C, Obj-C)NewStardog - Integrated reasoning databaseRDFa API - https://github.com/webr3/rdf.js
Semantic Web Architecture
Del.icio.us
OMNOMino.us
Basic RequirementsInformationPeopleBookmarksTagsFunctionalityCreate an accountAdd a bookmarkDelete a bookmarkBrowse other users’ bookmarks
Logical Schema
Relational DB - Physical Schema
Modeling in RDFMinimize artificial entitiesRe-use existing schemas or ontologies
Useful SchemasDublin CORE METADATA INITIATIVE (DCMI)FrienD-of-a-friend(FOAF)
DMCI
FOAFWell-defined ontology for people, organizations, and social networks
FOAF
RDF Data Model - Memberfoaf:Personfoaf:fullnamefoaf:nicknamefoaf:mboxfoaf:openidLiteral (“datataype”)propertiesResource (“object”)property
RDF Data Model - Bookmarkfoaf:Documentdct:titledct:descriptiondct:createddct:modifiedfoaf:pagefoaf:topicLiteral (“datataype”)propertiesResource (“object”)properties
Topics from DBPediaSemantifiedWikipedia
Custom properties and classesomnom:bookmarkedhttp://omnomino.us/ontology/om.n3#bookmarkedomnom:bookmarkedfoaf:Documentfoaf:Person
Custom properties and classesrdfs:subClassOfrdfs:subClassOffoaf:Documentfoaf:Personomnom:Memberomnom:Resource
RDF Data Model
SPARQLGraph query languageRead-only (1.0)Safe to expose endpoint to WebSPARQL 1.1 adds updates
A Simple SPARQL ExampleSELECT ?subj ?pred ?objWHERE {		?subj ?pred ?obj.}Demo
SPARQL Query TypesSELECT – Returns tuples matching specified patternASK – yes or no (tests for existence)CONSTRUCT – Returns a graphDESCRIBE – Returns a graph determined by the query engine
SPARQL Examples: ASKASK {	?urifoaf:openid <http://brian.panul.la>.}
SPARQL Examples: MemberSELECT DISTINCT ?uri ?fullname ?nickname ?emailWHERE {	?uri a omnom:Member.	OPTIONAL {?urifoaf:name ?fullname;foaf:nick ?nickname;foaf:mbox ?email.	}FILTER (?uri = <http://omnomino.us/member/24601>)
SPARQL Example: Bookmarks
Updates via API
The Good:Domains where schemas/models change rapidly or data is sparseSemantics of relational model inadequate (e.g. inferencing, inheritance)Domains emphasizing relationshipsSocial networksTaxonomies
The Bad:WeaknessesBad for opaque objects with few relationshpsLarge sets of homogenous objectsAlternativesRDBMSNoSQLDocument DBsKey/Value StoresGraph databases
Linked DataPublish/Syndicate complete information setsEmbedded explicit semantics, unique identifiersHave minimal impact to other Web information publishingMay be static or dynamically generated
ResourcesSemantic Web Programming - John Hebeler, Matthew Fisher, Ryan Blace, and Andrew Perez-LopezSemantic Web for the Working Ontologist: Effective Modeling in RDFS and OWL -Dean Allemang and James HendlerProgramming the Semantic Web by Toby Segaran, Colin Evans, and Jamie Taylor

More Related Content

PDF
Linked Open Data Visualization
PPTX
Wi2015 - Clustering of Linked Open Data - the LODeX tool
PPTX
Das Semantische Daten Web für Unternehmen
PDF
From Open Linked Data towards an Ecosystem of Interlinked Knowledge
PPTX
Creating knowledge out of interlinked data
PPTX
Knowledge Graph Introduction
PPTX
Linked data life cycles
PPTX
LODAC Museum -- Connecting Museums with LOD --
Linked Open Data Visualization
Wi2015 - Clustering of Linked Open Data - the LODeX tool
Das Semantische Daten Web für Unternehmen
From Open Linked Data towards an Ecosystem of Interlinked Knowledge
Creating knowledge out of interlinked data
Knowledge Graph Introduction
Linked data life cycles
LODAC Museum -- Connecting Museums with LOD --

What's hot (16)

PPTX
Virtuoso -- The Prometheus of RDF
PDF
Entity-Centric Data Management
PPTX
The Semantic Data Web, Sören Auer, University of Leipzig
PDF
Brief State of the Art - Semantic Web technologies for geospatial data - Mode...
PDF
How Apache Spark fits in the Big Data landscape
PPT
Getting Started With The Talis Platform
PPT
Semantic Pipes and Semantic Mashups
PDF
Do it on your own - From 3 to 5 Star Linked Open Data with RMLio
PPTX
Evolutionary & Swarm Computing for the Semantic Web
PDF
How Apache Spark fits into the Big Data landscape
PPT
Linking library data
PDF
ESWC SS 2012 - Wednesday Tutorial Barry Norton: Building (Production) Semanti...
PPTX
Linked open data
PDF
Use of standards and related issues in predictive analytics
PDF
FAIRness through a novel combination of Web technologies
PPT
Virtuoso -- The Prometheus of RDF
Entity-Centric Data Management
The Semantic Data Web, Sören Auer, University of Leipzig
Brief State of the Art - Semantic Web technologies for geospatial data - Mode...
How Apache Spark fits in the Big Data landscape
Getting Started With The Talis Platform
Semantic Pipes and Semantic Mashups
Do it on your own - From 3 to 5 Star Linked Open Data with RMLio
Evolutionary & Swarm Computing for the Semantic Web
How Apache Spark fits into the Big Data landscape
Linking library data
ESWC SS 2012 - Wednesday Tutorial Barry Norton: Building (Production) Semanti...
Linked open data
Use of standards and related issues in predictive analytics
FAIRness through a novel combination of Web technologies
Ad

Viewers also liked (7)

PDF
Architecture's io t d_macp
PPTX
OCR processing with deep learning: Apply to Vietnamese documents
PPTX
Tamil OCR using Tesseract OCR Engine
PPT
Semantics
PPT
Semantics: Seven types of meaning
PPTX
SEMANTICS
PPSX
Architecture's io t d_macp
OCR processing with deep learning: Apply to Vietnamese documents
Tamil OCR using Tesseract OCR Engine
Semantics
Semantics: Seven types of meaning
SEMANTICS
Ad

Similar to Architecture Patterns for Semantic Web Applications (20)

PPTX
CSHALS 2010 W3C Semanic Web Tutorial
PPTX
A Little SPARQL in your Analytics
PDF
Semantic Web talk TEMPLATE
PPT
Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...
ODP
Riding the Semantic Web
PPTX
Linked data HHS 2015
PDF
Short Report Bridges performance gap between Relational and RDF
PDF
Semantic Web and Web 3.0 - Web Technologies (1019888BNR)
PPT
A hands on overview of the semantic web
PDF
Semantic - Based Querying Using Ontology in Relational Database of Library Ma...
PPTX
First Steps in Semantic Data Modelling and Search & Analytics in the Cloud
PPTX
Hack U Barcelona 2011
PPTX
Web RDF
PDF
RDF: what and why plus a SPARQL tutorial
ODP
State of the Semantic Web
PPTX
Semantic Web: introduction & overview
PPT
A Semantic Multimedia Web (Part 2)
PPTX
RDF and Drupal - The Semantic web
PPTX
Demystifying RDF
PPT
From Web 2.0 to the Semantic Web: Bridging the Gap in the Newsmedia Industry
CSHALS 2010 W3C Semanic Web Tutorial
A Little SPARQL in your Analytics
Semantic Web talk TEMPLATE
Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...
Riding the Semantic Web
Linked data HHS 2015
Short Report Bridges performance gap between Relational and RDF
Semantic Web and Web 3.0 - Web Technologies (1019888BNR)
A hands on overview of the semantic web
Semantic - Based Querying Using Ontology in Relational Database of Library Ma...
First Steps in Semantic Data Modelling and Search & Analytics in the Cloud
Hack U Barcelona 2011
Web RDF
RDF: what and why plus a SPARQL tutorial
State of the Semantic Web
Semantic Web: introduction & overview
A Semantic Multimedia Web (Part 2)
RDF and Drupal - The Semantic web
Demystifying RDF
From Web 2.0 to the Semantic Web: Bridging the Gap in the Newsmedia Industry

Architecture Patterns for Semantic Web Applications

Editor's Notes

  • #2: http://www.flickr.com/photos/mayhem/3104825022/in/photostream/
  • #12: http://www.flickr.com/photos/herr_hartmann/448478567/in/photostream/http://www.flickr.com/photos/mayhem/3104825022/in/photostream/
  • #29: http://www.flickr.com/photos/jingleslenobel/4971486823