-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add concept types endpoint #189
Comments
GNDGND Ontology has seven types (not sure about one of them):
Every concept must have one of these types (mandatory type). GND ontology has more fine-grained classification of concepts but "types" should be limited to basic types. PICA Format for authority recordings, subsuming GND internal format has several types but they can be stripped down to the same (except Family):
STWThere is the additional type RDF OntologiesTwo disjoint mandatory types: classes and properties. Skosmos APISee https://api.finto.fi/doc/#!/Global32methods/get_types and https://api.finto.fi/doc/#!/Vocabulary45specific32methods/get_vocid_types. For instance https://api.finto.fi/rest/v1/yso/types?lang=en: [
{
"uri": "http://www.w3.org/2004/02/skos/core#Concept",
"label": "Concept"
},
{
"uri": "http://www.w3.org/2004/02/skos/core#Collection",
"label": "Collection"
},
{
"uri": "http://purl.org/iso25964/skos-thes#ConceptGroup",
"label": "Concept group"
},
{
"uri": "http://purl.org/iso25964/skos-thes#ThesaurusArray",
"label": "Array of sibling concepts"
},
{
"uri": "http://www.yso.fi/onto/yso-meta/Concept",
"label": "General concept",
"superclass": "http://www.w3.org/2004/02/skos/core#Concept"
},
{
"uri": "http://www.yso.fi/onto/yso-meta/Individual",
"label": "Individual concept",
"superclass": "http://www.w3.org/2004/02/skos/core#Concept"
},
{
"uri": "http://www.yso.fi/onto/yso-meta/Hierarchy",
"label": "Hierarchical concept",
"superclass": "http://www.w3.org/2004/02/skos/core#Concept"
}
] Only types with |
There should be API endpoint GET /voc/concepts/types with optional parameter List of concept types (distinct values in field Mapping types (by now hardcoded list) could be returned at GET /mappings/types but this requires further discussion. |
To avoid sub-sub-level endpoint URLs the API endpoint should be GET /voc/concept-typesLists concept types of a concept scheme. A concept type is an additional type URI in JSKOS field
|
After the recent changes in #193, should this maybe be adjusted to |
Yes, it should better be |
I feel like the list of all types of all schemes doesn't make much sense. |
Then it should better be GET /voc/typesLists concept types of a concept scheme. A concept type is an additional type URI in JSKOS field
Additional ferature: #210 Open question: how this relates to concept scheme field |
Did you mean to use a different URI for the Sample Call? It's not a concept scheme URI. Otherwise I'm fine with that.
I would think they offer the exact same data. The question is whether we actually include the full Another question: Where is the types data located and how is it imported? |
Yes, sorry I've fixed it! About
There are two sources of type URIs: 1.) explicitly list types in field The full list of types could be a) just 2. so field concept schemes field I tend to b): when a concept is added to a scheme, check whether the concept types are already listed in the scheme's type list and add the type URI if it was not present. When a concept is deleted, don't update types. Additional information about types could come from |
Some vocabularies have their concepts grouped in types of concepts:
Classifications such as RVK and DDC have normal classes and number spans. Compound classes may be another independent type of classes
Thesauri often have their concepts grouped in a (or multiple?) classifications.
e.g. GND has entity types Person, Corporate Body, Work... with more detailed subdivision
STW has a subject classification of concepts.
Note that both are currently modeled differently: In GND entity types are "types" in the sens of this issue, in STW the subject classification is part of the concepts but classes have an additional type "zbwext:Thsys" to distinguish from normal concepts.
RDF Ontologies have classes and properties as two basic types of entities
Some open questions:
types are vocabularies of their own, should they be included at other endpoints as well?
this should be aligned with cocoda-sdk and with other terminology services such as Skosmos and Ontology Lookup Service (OLS)
Define
/types
endpoint as already being provided by in DANTE API.The text was updated successfully, but these errors were encountered: