semantic web for ontology chapter4 bynk

16
Chapter 4 Semantic Web Application Structure By NK

Upload: namgee-lee

Post on 22-Feb-2017

212 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Semantic web for ontology chapter4 bynk

Chapter 4

Semantic Web Application StructureBy NK

Page 2: Semantic web for ontology chapter4 bynk

Keyword

• RDF store• RDF query engine• SPARQL• SPARQL endpoint• Application interface• Scraper• Converter• RDFa & GRDDL

Page 3: Semantic web for ontology chapter4 bynk

Context

• RDF Parser / Serializer• RDF Store

Page 4: Semantic web for ontology chapter4 bynk

RDF Parser / Serializer ( 1 )

• RDF Parser– can read RDF Application’s data source that

has .rdf extension.– has a data source as an Input data.– translate data source into triple

Page 5: Semantic web for ontology chapter4 bynk

RDF Parser / Serializer ( 2 )

• Serializer– It is a Reverse Operation– Using a RDF parser and Serializer to possible the

'Round-trip' of the triple.– What mean is ‘Round-trip’?

Page 6: Semantic web for ontology chapter4 bynk

RDF Parser / Serializer ( 3 )

• Example for Serializer Format– N-Triples

Page 7: Semantic web for ontology chapter4 bynk

RDF Store ( 1 )

• Store RDF Data• Using each parser and serializer for ‘Populate’

and ‘Publish’• In contrast to a relational data store, includes

as a fundamental capability the ability to ‘merge’ two data sets together– Because of Flexible nature of the RDF data model.

Page 8: Semantic web for ontology chapter4 bynk

RDF Store ( 2 )

• RDF Data Standards and Interoperability of RDF Stores– Relational data store is a difficult process to transfer a

whole database from one system to another.– But RDF data model is a shared by all of these products– All of them can import and export their data sets in the

RDF/XML format.– This feature, early and aggressive standardization

process, makes it much easier to begin with one RDF store, secure in the knowledge that the system can be migrated to another as the need arises.

Page 9: Semantic web for ontology chapter4 bynk

RDF Store ( 3 )

• RDF Query Engines and SPARQL– Accessed using a query language.– Cover the highlights of SPARQL query language in

this section.

Page 10: Semantic web for ontology chapter4 bynk

RDF Store ( 4 )

• RDF Query Engines and SPARQLN3 Graph

Page 11: Semantic web for ontology chapter4 bynk

RDF Store ( 5 )

• RDF Query Engines and SPARQL– The basic building block of a SPARQL query is the

triple pattern.– Variables are indicated as symbols preceded by

the special ‘?’ character.– Example• ?w lit:wrote lit:KingLear .

lit:Shakespeare ?r lit:KingLear.lit:Shakespeare lit:wrote ?p.

Page 12: Semantic web for ontology chapter4 bynk

RDF Store ( 6 )

• RDF Query Engines and SPARQL– Who wrote King Lear?– What relationship did Shakespeare have to King Lear?– What did Shakespeare write?

Page 13: Semantic web for ontology chapter4 bynk

RDF Store ( 7 )

• RDF Query Engines and SPARQL– Interesting query is one in which the query

specifies a graph pattern.– A graph pattern is specified as a set of triple

patterns, with the stipulation that any variable that appears in two or more triple patterns must match the same resource in the graph.

– In SPARQL syntax, graph patterns are given as a list of triple patterns enclosed within braces ({ and }).

Page 14: Semantic web for ontology chapter4 bynk

RDF Store ( 8 )

• RDF Query Engines and SPARQL– ?person lit:wrote lit:KingLear .}

{?person bio:livedIn ?place.?place geo:isIn geo:England.?person lit:wrote lit:KingLear . }

Page 15: Semantic web for ontology chapter4 bynk

RDF Store ( 8 )

• RDF Query Engines and SPARQL

– It has no knowledge that marriage is a symmetric union and so Shakespeare must have married Anne Hathaway.

– Solution OWL (Will Learn Chapter 7)

Page 16: Semantic web for ontology chapter4 bynk

Summary

• What are RDF Parser and Serializer• How operation RDF Store• How access RDF Store using RDF Query engine• SPARQL• SPARQL endpoint