mlw 2014 lightning talk - pushing the semantics envelope

9

Click here to load reader

Upload: marklogic

Post on 01-Jul-2015

81 views

Category:

Technology


3 download

DESCRIPTION

MarkLogic 7 brings capabilities of document databases and RDF databases together under one hood. In this talk I’ll explore how you can combine RDF and documents, in various ways, to bring flexibility and simplicity to data management in your applications.

TRANSCRIPT

Page 1: MLW 2014 Lightning Talk - Pushing the Semantics Envelope

© COPYRIGHT 2014 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

Pushing the Semantics Envelope Charles Greer, Senior Engineer @grechaw

Page 2: MLW 2014 Lightning Talk - Pushing the Semantics Envelope

© COPYRIGHT 2014 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE:

New Landscape for Data Architecture

Page 3: MLW 2014 Lightning Talk - Pushing the Semantics Envelope

© COPYRIGHT 2014 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE:

MarkLogic 7: structured RDF data and SPARQL ▪ Precision query ▪ Return bound variables or triples ▪ Joins ▪ Relationships ▪ Taxonomies

Page 4: MLW 2014 Lightning Talk - Pushing the Semantics Envelope

© COPYRIGHT 2014 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE:

Document-oriented features ▪ Full-text Search ▪ cts:directory-query( $directory ) ▪ cts:collection-query( $collection1, $collection2 ) ▪ cts:document-query( $doc1, $doc2, $doc3 ) ▪ geospatial query ▪ Security ▪ Bitemporal query* ▪ Content Processing Framework

Page 5: MLW 2014 Lightning Talk - Pushing the Semantics Envelope

© COPYRIGHT 2014 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE:

Documents give context to data -- use them both!

document: uri: /customers/125 permissions: ... contains: marked-up text contains: structured RDF data

Page 6: MLW 2014 Lightning Talk - Pushing the Semantics Envelope

© COPYRIGHT 2014 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE:

Contextualization Example, Security patients with Hereditary Diseases:

select ?name where { ?p foaf:name ?name ; :diagnosedWith ?d . ?d a :hereditaryDisease . }

Doctor : “John Doe” Patient : n/a

permissions: ROLE_DOCTOR rdf: :patientDoe foaf:name “John Doe” ; :diagnosedWith :hyperCholestrolemia .

permissions: ROLE_ANYONE rdf: :hyperCholestrolemia a :heriditaryDisease ; rdfs:label “High Cholesterol” .

Page 7: MLW 2014 Lightning Talk - Pushing the Semantics Envelope

© COPYRIGHT 2014 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE:

Documents Contextualize your SPARQL queries ▪ Query within a region:

sem:sparql(“select … where { … }”, cts:path-geospatial-query(...))

▪ Query only within a directory/collection/document

sem:sparql(“select … where { … }”, cts:document-query(...))

▪ Query only documents that match word search

sem:sparql(“select ?thisvalue ?thatvalue where { … }”, cts:word-query(...))

Page 8: MLW 2014 Lightning Talk - Pushing the Semantics Envelope

© COPYRIGHT 2014 MARKLOGIC CORPORATION. ALL RIGHTS RESERVED.

SLIDE:

MarkLogic Semantics Pushes the Envelope ▪ No up-front modelling - load as is.

▪ Choose data suitable for joins and structure - make RDF in documents.

▪ Manage documents as you always have, leverage existing features.

▪ Query RDF within the context of document-oriented query.

▪ The RDF triple store is no longer a separate tech stack - your documents are

already smart.

Page 9: MLW 2014 Lightning Talk - Pushing the Semantics Envelope