Main Page: Difference between revisions

From Latimer Core
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
=== Example Queries on collections ===
=== Example Queries on collections ===
==== Get the total number of curatorial objects ====
==== Get the total number of curatorial objects ====
This query gives the total amount of specimen:
This query gives the total amount of specimens:


{{SPARQL2|query=
{{SPARQL2|query=
PREFIX lc: <http://latimer-core.wiki.opencura.com/entity/>
PREFIX lc: <http://latimer-core.wikibase.cloud/entity/>
PREFIX lct: <http://latimer-core.wiki.opencura.com/prop/direct/>
PREFIX lct: <http://latimer-core.wikibase.cloud/prop/direct/>
PREFIX lcs: <http://latimer-core.wiki.opencura.com/entity/statement/>
PREFIX lcs: <http://latimer-core.wikibase.cloud/entity/statement/>
PREFIX lcp: <http://latimer-core.wiki.opencura.com/prop/>
PREFIX lcp: <http://latimer-core.wikibase.cloud/prop/>
PREFIX lcq: <http://latimer-core.wiki.opencura.com/prop/qualifier/>
PREFIX lcq: <http://latimer-core.wikibase.cloud/prop/qualifier/>
PREFIX lcps: <http://latimer-core.wiki.opencura.com/prop/statement/>
PREFIX lcps: <http://latimer-core.wikibase.cloud/prop/statement/>


SELECT ?item ?itemLabel ?measfact  
SELECT ?item ?itemLabel ?measfact ?value ?unit
         {  
         {  
             VALUES ?item {lc:Q62}
             VALUES ?item {lc:Q62}
             OPTIONAL {?item lct:P9 ?measfact .}
             OPTIONAL {?item lct:P9 ?measfact .}
            OPTIONAL {?measfact lct:P79 ?value .}
            OPTIONAL {?measfact lct:P78 ?unit .}
             SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
             SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
         }
         }
Line 45: Line 47:


{{SPARQL2|query=
{{SPARQL2|query=
PREFIX lc:<http://latimer-core.wiki.opencura.com/entity/>
PREFIX lc:<http://latimer-core.wikibase.cloud/entity/>
PREFIX lct:<http://latimer-core.wiki.opencura.com/prop/direct/>
PREFIX lct:<http://latimer-core.wikibase.cloud/prop/direct/>


SELECT ?method ?methodLabel  WHERE {
SELECT ?method ?methodLabel  WHERE {
   ?method lct:P134 cd:Q25.
   ?method lct:P134 lc:Q25.
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
}
}}
}}
=== List of all Classes ===
=== List of all Classes ===
This query provides you with a list of all available classes in the standard
This query provides you with a list of all available classes in the standard

Latest revision as of 14:34, 28 October 2023

Wikibase implementation of the TDWG Latimer Core standard

This Wikibase is part of the non-normative documentation of the Latimer Core standard. It contains all current properties defined in the standard and the advised schema to use those properties.

Wikibase model

This Wikibase contains the properties defined in the Latimer Core 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: FossilSpecimens (Q26)


Collection modelling

Example institutional record

As an example, we modeled the FMNH institutional collection in the Wikibase. The main components of the example description are:

Example Queries on collections

Get the total number of curatorial objects

This query gives the total amount of specimens:

The following query uses these:

PREFIX lc: <http://latimer-core.wikibase.cloud/entity/>
PREFIX lct: <http://latimer-core.wikibase.cloud/prop/direct/>
PREFIX lcs: <http://latimer-core.wikibase.cloud/entity/statement/>
PREFIX lcp: <http://latimer-core.wikibase.cloud/prop/>
PREFIX lcq: <http://latimer-core.wikibase.cloud/prop/qualifier/>
PREFIX lcps: <http://latimer-core.wikibase.cloud/prop/statement/>

SELECT ?item ?itemLabel ?measfact ?value ?unit
        { 
            VALUES ?item {lc:Q62}
            OPTIONAL {?item lct:P9 ?measfact .}
            OPTIONAL {?measfact lct:P79 ?value .}
            OPTIONAL {?measfact lct:P78 ?unit .}
            SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
        }

Get the total number of digitized specimen at MIDS level 1

The following query uses these:

To be done

LC standard: 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:

PREFIX lc:<http://latimer-core.wikibase.cloud/entity/>
PREFIX lct:<http://latimer-core.wikibase.cloud/prop/direct/>

SELECT ?method ?methodLabel  WHERE {
  ?method lct:P134 lc:Q25.
  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:

to be done

List of all properties belonging to the ObjectGroup Class

This query creates a list of all properties belonging to the ObjectGroup class

The following query uses these:

to be done