Difference between revisions of "SKOSSupport"

From NCBO Wiki
Jump to navigation Jump to search
m
(Incremental save)
Line 1: Line 1:
 +
[[File:Plos_thesaurus_class_tree.png|thumb|400px|PLOS Thesaurus concept tree in BioPortal]]
 +
  
  
Line 8: Line 10:
 
BioPortal is a web-based portal for accessing and sharing ontologies. The application fully supports ontology submissions in OWL and OBO format, and offers partial support for SKOS vocabularies. To follow is documentation of the minimum number of SKOS constructs that a SKOS vocabulary must contain in order to display well in BioPortal.
 
BioPortal is a web-based portal for accessing and sharing ontologies. The application fully supports ontology submissions in OWL and OBO format, and offers partial support for SKOS vocabularies. To follow is documentation of the minimum number of SKOS constructs that a SKOS vocabulary must contain in order to display well in BioPortal.
  
For every ontology entry in BioPortal, the application provides a tabbed interface with various views of the ontology data, e.g., a Classes tab with a tree structure to graphically depict the hierarchical collection of ontology classes.
+
 
 +
==== Required SKOS constructs ====
  
  
[[File:Snomedct_class_tree.png|border|The Classes tab for the SNOMED CT ontology in BioPortal]]
+
===== skos:Concept =====
  
 +
''Concepts'' are the fundamental elements of SKOS vocabularies and are asserted using the skos:Concept class, e.g.:
  
==== Required SKOS constructs ====
+
  <nowiki><http://www.example.com/animals></nowiki> rdf:type skos:Concept
 +
 
 +
SKOS vocabularies submitted to BIoPortal must contain one or more skos:Concept assertions. See the W3C's SKOS System Primer and SKOS Reference for skos:Concept documentation and examples:
 +
 
 +
https://www.w3.org/TR/2009/NOTE-skos-primer-20090818/#secconcept
 +
 
 +
https://www.w3.org/TR/skos-reference/#concepts
  
===== skos:Concept =====
 
  
 
===== skos:ConceptScheme & skos:hasTopConcept =====
 
===== skos:ConceptScheme & skos:hasTopConcept =====
 +
 +
For every ontology entry in BioPortal, the application provides a tabbed interface with various views of the ontology data, e.g., a "Classes" tab with a tree structure to graphically depict the hierarchical collection of ontology classes.
 +
 +
In the case of SKOS vocabularies, BioPortal determines which concepts to display as roots in the concept tree by querying vocabulary content for occurrences of skos:hasTopConcept property assertions. Top concepts are the most general concepts contained in SKOS concept schemes (an aggregation of one or more SKOS concepts).
 +
 +
The following example, taken from the SKOS System Primer, shows how to define a concept scheme and link it to the most general concepts it contains:
 +
 +
 +
@prefix skos: <nowiki><http://www.w3.org/2004/02/skos/core#></nowiki> .
 +
@prefix rdf: <nowiki><http://www.w3.org/1999/02/22-rdf-syntax-ns#></nowiki> .
 +
@prefix ex: <nowiki><http://www.example.com/></nowiki> .
 +
 +
ex:animalThesaurus rdf:type skos:ConceptScheme;
 +
  skos:hasTopConcept ex:mammals;
 +
  skos:hasTopConcept ex:fish.

Revision as of 19:11, 30 November 2017

PLOS Thesaurus concept tree in BioPortal



Support for SKOS vocabularies in BioPortal

BioPortal is a web-based portal for accessing and sharing ontologies. The application fully supports ontology submissions in OWL and OBO format, and offers partial support for SKOS vocabularies. To follow is documentation of the minimum number of SKOS constructs that a SKOS vocabulary must contain in order to display well in BioPortal.


Required SKOS constructs

skos:Concept

Concepts are the fundamental elements of SKOS vocabularies and are asserted using the skos:Concept class, e.g.:

 <http://www.example.com/animals> rdf:type skos:Concept

SKOS vocabularies submitted to BIoPortal must contain one or more skos:Concept assertions. See the W3C's SKOS System Primer and SKOS Reference for skos:Concept documentation and examples:

https://www.w3.org/TR/2009/NOTE-skos-primer-20090818/#secconcept

https://www.w3.org/TR/skos-reference/#concepts


skos:ConceptScheme & skos:hasTopConcept

For every ontology entry in BioPortal, the application provides a tabbed interface with various views of the ontology data, e.g., a "Classes" tab with a tree structure to graphically depict the hierarchical collection of ontology classes.

In the case of SKOS vocabularies, BioPortal determines which concepts to display as roots in the concept tree by querying vocabulary content for occurrences of skos:hasTopConcept property assertions. Top concepts are the most general concepts contained in SKOS concept schemes (an aggregation of one or more SKOS concepts).

The following example, taken from the SKOS System Primer, shows how to define a concept scheme and link it to the most general concepts it contains:


@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://www.example.com/> .

ex:animalThesaurus rdf:type skos:ConceptScheme;
  skos:hasTopConcept ex:mammals;
  skos:hasTopConcept ex:fish.