1 / 15

Triplestore Experiences

Triplestore Experiences. Nathan Wilhelmi 11/27/2012 NCAR - CISL/TDD/VETS. Our Experiences…. Disclaimers: Did not have an ontologist Codebase passed through multiple developers Timelines ( changing landscape) Started work 2006 Stopped active development ~2011 Sesame version 2.3.0.

radwan
Télécharger la présentation

Triplestore Experiences

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Triplestore Experiences Nathan Wilhelmi 11/27/2012 NCAR - CISL/TDD/VETS

  2. Our Experiences… • Disclaimers: • Did not have an ontologist • Codebase passed through multiple developers • Timelines (changing landscape) • Started work 2006 • Stopped active development ~2011 • Sesame version 2.3.0

  3. Why a Triplestore? • Search functionality • Faceted • Free text • Model metadata • Metadata storage • Display • Semantic web

  4. Initial Architecture • Authoritative metadata source was RDBMS • Metadata harvested into the triplestore at periodic intervals • Triplestore only contained metadata to drive search • Sesame used as a stand alone service

  5. Sesame Triplestore • Standalone Sesame server • Stability problems • No security, triplestore could be updated by anyone • Changed to in-memory store • Stable • Picked up performance improvements • Embedded triplestore was only internally referencing • RDF didn’t work outside of the application • Distilled to key-value store

  6. Internal Referencing <rdf:RDF ...> <rdf:Descriptionrdf:about="http://www.earthsystemgrid.org/esg.owl#esg-ncar__ucar_cgd_ccsm_b30_072b"> .... <esg:hasUnconfiguredModelComponentrdf:resource="http://www.earthsystemgrid.org/esg.owl#modelcomponent_ccsm_run_b30.072b" /> .... </rdf:Description> </rdf:RDF>

  7. Performance • For our query patterns were not seeing needed performance • Inferencing was removed and performance improved to acceptable levels for <5k datasets • Target volume 50K datasets • Sparql missing key operators: ordering, limits

  8. Tooling Support • Managing the triplestore • Protégé round trips didn’t work well • Dump full triple store to XML and grep by hand • Deleting and updating triples • Deletes were difficult, dangling triples • Rebuild from authoritative sources

  9. Implementation Issues • Schema-less design was perceived as faster • Rapid ontology changes during development • Still needed data migration tools • Modeling the problem domain • Modeled a triplestore, not the domain • Very tightly coupled code was difficult to maintain and replace • Steep learning curve for new developers

  10. URIs Are Foundational • Properly encoding URIs • Created unencoded URIs within the triplestore • Queries were created with string concentration • Lead to broken queries and data • Generated instance URIs through a lossy algorithm to get around encoding • Could only relate from source -> triple store

  11. Our Current Path Forward • Using SOLR Search • Fantastic search tool! • Metadata in RDBMS • Working well • Effective tools, including schema migration • Scales very well for our metadata • Still needed to expose RDF metadata…

  12. RDF with RDBMS <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:sesame="http://www.openrdf.org/schema/sesame#" xmlns:esg="http://www.earthsystemgrid.org/esg.owl#"> <rdf:Descriptionrdf:about="http://www.earthsystemgrid.org/esg.owl#${rdfIdFactory.getDatasetId(dataset)}"> <rdf:typerdf:resource="http://www.earthsystemgrid.org/esg.owl#Resource" /> <rdf:typerdf:resource="http://www.earthsystemgrid.org/esg.owl#Dataset" /> <rdf:typerdf:resource="http://www.earthsystemgrid.org/esg.owl#GeophysicalDataset" /> <rdf:typerdf:resource="http://www.earthsystemgrid.org/esg.owl#ModelDataset" /> <esg:hasUrirdf:datatype="http://www.w3.org/2001/XMLSchema#string"> resource://${gateway.name?upper_case}#${dataset.persistentIdentifier} </esg:hasUri> <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">${dataset.name}</rdfs:label> </rdf:Description> </rdf:RDF>

  13. Looking Forward • Storing metadata • Content managementsystems? • NoSql storage options? • Modeling complicated relationships • Neo4J looks promising…

  14. Questions / Discussion • NathanWilhelmi • wilhelmi@ucar.edu

More Related