-
Notifications
You must be signed in to change notification settings - Fork 95
Data Model
This page documents the RDF constructs, including but not limited to SKOS, that Skosmos supports. In general, Skosmos should work with any well-formed SKOS Core vocabularies.
It is recommended use Skosify to pre-process your SKOS vocabulary and fix potential problems before publishing it in Skosmos.
All instances of skos:Concept
are displayed as concepts in Skosmos. Each concept will have its own page and concepts can be searched for (via their labels).
Skosmos supports the following label properties:
-
skos:prefLabel
is used as preferred label, usually set in bold -
skos:altLabel
: can be found in search, usually set in italic -
skos:hiddenLabel
: can be found in search, but not displayed
Make sure that you have proper language tags for all labels.
-
skos:broader
andskos:narrower
are used for e.g. the hierarchy display -
skos:related
is displayed as links between concepts
Skosmos recognizes all SKOS mapping relationships
skos:exactMatch
skos:closeMatch
skos:broadMatch
skos:narrowMatch
-
skos:relatedMatch
see issue 165 owl:sameAs
skos:note
skos:scopeNote
skos:definition
-
skos:example
: not implemented, see issue #164 -
skos:historyNote
: not implemented, see issue #164 -
skos:editorialNote
: not implemented, see issue #164 -
skos:changeNote
: not implemented, see issue #164
Both the old DC 1.1 (namespace prefix dc11
) and the newer DC Terms (prefix dc
) namespaces are supported.
-
dc:title
anddc11:title
dc:subject
-
dc:description
anddc11:description
-
dc:creator
anddc11:creator
-
dc:contributor
anddc11:contributor
-
dc:rigts
anddc11:rights
-
dc:license
anddc11:license
-
dc:publisher
anddc11:publisher
-
dc:source
anddc11:source
dc:date
dc:created
dc:issued
dc:modified
-
dc:relation
anddc11:relation
dc:replaces
dc:isReplacedBy
rdfs:label
rdfs:comment
owl:versionInfo
foaf:homepage
skosext:partOf
You can define custom types of concepts, i.e. subclasses of skos:Concept
, in your RDF data. The type will be displayed by Skosmos and you can also restrict searches by type.
Make sure to also set a label for each type. Also make sure that instances of those subclasses are also typed as skos:Concept, as Skosmos by itself will not perform any inference (Skosify with the --infer
option can be used for this).
Example:
ex:Place a owl:Class ;
rdfs:subClassOf skos:Concept ;
rdfs:label "Place"@en .
ex:new_york a ex:Place, skos:Concept ;
skos:prefLabel "New York"@en .
ex:paris a ex:Place, skos:Concept ;
skos:prefLabel "Paris"@en .