Main Page: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
This Wikibase will be used to demonstrate the current CD standard using real data. | This Wikibase will be used to demonstrate the current CD standard using real data. | ||
The data standard is currently under development. This development is | The data standard is currently under development. This development is done in [https://github.com/tdwg/cd GitHub] | ||
== Wikibase model == | == Wikibase model == | ||
Line 20: | Line 20: | ||
SELECT ?method ?methodLabel WHERE { | SELECT ?method ?methodLabel WHERE { | ||
?method cdt:P1 cd:Q41. | ?method cdt:P1 cd:Q41. | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |||
} | |||
}} | |||
=== List of all Classes === | |||
This query provides you with a list of all available classes in the standard | |||
{{SPARQL2|query= | |||
PREFIX cd:<http://tdwg-cd.wiki.opencura.com/entity/> | |||
PREFIX cdt:<http://tdwg-cd.wiki.opencura.com/prop/direct/> | |||
SELECT ?method ?methodLabel WHERE { | |||
?method cdt:P1 cd:Q6. | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | ||
} | } | ||
}} | }} |
Revision as of 15:16, 13 May 2020
Wikibase implementation of the Collection Description (CD) standard
This Wikibase will be used to demonstrate the current CD standard using real data.
The data standard is currently under development. This development is done in GitHub
Wikibase model
This Wikibase contains the properties defined in the Collection Description standard. In case a controlled vocabulary is needed for a property, this is modelled as follows:
- The property is pointing to an 'Item'
- This item should be an instance of a 'Concept'. See this example: dried pinned (Q46)
Not all concepts and controlled vocabulary term are already present in the Wikibase. So when adding your institutional data, it might/will be necessary to add new terms to the Wikibase.
Example Queries
Controlled vocabulary of preservation methods
This SPARQL query gives an overview of all preservation methods present in the wikibase.
The following query uses these:
- Items: PreservationMethod (Q41)
- properties: instance of (P1)
PREFIX cd:<http://tdwg-cd.wiki.opencura.com/entity/> PREFIX cdt:<http://tdwg-cd.wiki.opencura.com/prop/direct/> SELECT ?method ?methodLabel WHERE { ?method cdt:P1 cd:Q41. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
List of all Classes
This query provides you with a list of all available classes in the standard
The following query uses these:
- Items: Class (Q6)
- properties: instance of (P1)
PREFIX cd:<http://tdwg-cd.wiki.opencura.com/entity/> PREFIX cdt:<http://tdwg-cd.wiki.opencura.com/prop/direct/> SELECT ?method ?methodLabel WHERE { ?method cdt:P1 cd:Q6. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }