424ab5487982cfe260768d4d41e0bb9e.ppt
- Количество слайдов: 51
NCBO SPARQL Endpoint Trish Whetzel Outreach Coordinator THE NATIONAL CENTER FOR BIOMEDICAL ONTOLOGY
Outline • • • NCBO Overview Bio. Portal Web and Web services Bio. Portal SPARQL Endpoint Bio. Portal Metadata Ontology SPARQL Examples
Links of Interest • http: //www. bioontology. org/wiki/index. php/S WAT 4 LS 2012_Tutorial
National Center for Biomedical Ontology • Mission – To create software for the application of ontologies in biomedical science and clinical care • NCBO Partners – Stanford University - Dr. Mark A. Musen – Mayo Clinic - Dr. Christopher G. Chute – University at Buffalo - Dr. Barry Smith – University of Victoria - Dr. Margaret-Anne Storey
NCBO Key Activities • We create and maintain a library of biomedical ontologies • We build tools and Web services to enable the use of ontologies • We collaborate with scientific communities that develop and use ontologies
National Centers for Biomedical Computing (http: //www. ncbcs. org)
www. bioontology. or
Outline • • • NCBO Overview Bio. Portal Web and Web services Bio. Portal SPARQL Endpoint Bio. Portal Metadata Ontology SPARQL Examples
bioportal. bioontology. org
Bio. Portal • Repository of biomedical ontologies • Infrastructure is domain independent • Stores ontologies developed in OWL, Protégé frames, OBO format, and Rich Release Format • Access to ontologies via Web interface, Web services, and SPARQL • Access control for private ontologies • Supports subsets/views of ontologies
Search Traverse Comment Download http: //rest. bioontology. org Ontology Services • • Mapping Services • Create • Upload • Download Widgets • • • Annotation Term recognition Data Access Tree-view Auto-complete Graph-view Search “data” annotated with a given term http: //bioportal. bioontology. org
Virtual Appliance Installations
Who is using NCBO technology?
Outline • • • NCBO Overview Bio. Portal Web and Web services Bio. Portal SPARQL Endpoint Bio. Portal Metadata Ontology SPARQL Examples
Bio. Portal Architecture Third party applications Ruby on Rails Tomcat Restlet Spring Framework Hibernate ORM Protégé DB OWL, RDF, Protégé frames RDF Lex. EVS OBO format, UMLS RRF, Lex. Grid XML SPARQL Access
http: //sparql. bioontology. org/
Bio. Portal SPARQL Data • Ontology Content • Ontology Metadata • Mapping Data
Bio. Portal SPARQL Data cont. • All ontologies from Bio. Portal – Original ontology format transformed into RDF • OBO and OWL converted via OWL API • RRF converted via UMLS 2 RDF custom code – Latest version only • Statistics – 415 ontologies – 4. 2 M terms – 2419 different predicates – 80 M triples
Outline • • • NCBO Overview Bio. Portal Web and Web services Bio. Portal SPARQL Endpoint Bio. Portal Metadata Ontology SPARQL Examples
Bio. Portal Metadata Ontology • Virtual Ontology – Virtual ontology identifier provides a stable identifier across all versions of the ontology – All versions of an ontology are linked via this ID • Ontology – Ontology version identifier is unique for each version of an ontology – Most metadata linked directly to the ontology version
Bio. Portal Ontology Metadata
Bio. Portal Metadata Ontology
Outline • • • NCBO Overview Bio. Portal Web and Web services Bio. Portal SPARQL Endpoint Bio. Portal Metadata Ontology SPARQL Examples
SPARQL Basics – W 3 C standard query language for RDF
Prefixes of Interest • meta: http: //bioportal. bioontology. org/metadata/def/ • omv: http: //omv. ontoware. org/2005/05/ontology# • map: http: //protege. stanford. edu/ontologies/mappings. rdfs# • • • owl: http: //www. w 3. org/2002/07/owl# skos: http: //www. w 3. org/2004/02/skos/core# rdfs: http: //www. w 3. org/2000/01/rdf-schema# rdf: http: //www. w 3. org/1999/02/22 -rdf-syntax-ns# xsd: http: //www. w 3. org/2001/XMLSchema#
Ontology Content in Named Graphs No named graph is the same as the union of all graphs.
Globals • Provides rdfs: sub. Property. Of reasoning to enable querying over multiple ontologies while using the same predicate – http: //bioportal. bioontology. org/ontologies/globals • Implemented for: – Preferred name – skos: pref. Label – Synonyms – skos: alt. Label – Term definition – skos: definition – Term author – dc: author
Query including globals
Select all ontology graphs
All ontologies updated since DATE
List latest ontologies
Find term in all ontologies
Get all root terms
Select all terms from the ABA Adult Mouse Anatomy
Select URI and preferred label from all terms
Get parent of given term
Select all terms and their parent
Select distinct properties from an ontology
Select properties for term
Get count of terms in SNOMED
Mapping Access • Get a list of mappings for an ontology to all other ontologies • Get a list of mappings between two ontologies • Get a list of mappings for a single term • Get a list of mappings between two terms
Mapping Data Sources Loom - lexical mappings REST - user submitted mappings UMLS-CUI - CUI based mappings OBO-XREF - Mappings for terms with same xref attribute • URI-MATCH - Mappings that for terms that in different ontologies are represented by the same URI • • http: //www. bioontology. org/wiki/index. php/SPARQL_Bio. Portal#Mappings
RDF Representation of Mappings Noy, N. F. , Griffith, N. , Musen, M. A. : Collecting community-based mappings in an ontology repository. In: International Semantic Web Conference. pp. 371– 386 (2008)
Get mapping statistics for an ontology
Get all mappings between two ontologies
Get all mappings for a given term
Performance Tips and Tricks – Completely unbound patterns (? g ? s ? p ? o) are not allowed – To optimize queries, use UNIONS instead of FILTERS – If using FILTER on literals it is better if the filter is not applied to millions of rows – To prevent combinatorial explosions of results, consider use CONSTRUCT or DESCRIBE (any M-N relationship can provoke this)
SPARQL Code Repository • https: //github. com/ncbo/sparql-codeexamples
Thank you! • Bio. Portal SPARQL documentation: http: //www. bioontology. org/wiki/index. php/ SPARQL_Bio. Portal • Keep in touch – Software support: support@bioontology. org – Twitter: @bioontology – Facebook: http: //on. fb. me/bioontology – Linked. In: http: //linkd. in/ncbo-group
Bio. Portal SPARQL Endpoint Info • Documentation: http: //www. bioontology. org/wiki/index. php/SPA RQL_Bio. Portal • Query interface: http: //sparql. bioontology. org/ • Example queries: http: //sparql. bioontology. org/examples • Sample code: https: //github. com/ncbo/sparqlcode-examples
424ab5487982cfe260768d4d41e0bb9e.ppt