EntitySchema:E2: Difference between revisions
From geokb
(Updated English label, description or aliases) |
(Updated Schema text: Initial cut at the organization schema) |
||
Schema / Line 1: | Schema / Line 1: | ||
prefix skos: <http://www.w3.org/2004/02/skos/core#> | |||
prefix schema: <http://schema.org/> | |||
prefix wikibase: <http://wikiba.se/ontology#> | |||
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |||
prefix xsd: <http://www.w3.org/2001/XMLSchema#> | |||
prefix wd: <https://geokb.wikibase.cloud/entity/> | |||
prefix wdt: <https://geokb.wikibase.cloud/prop/direct/> | |||
< | START = @<Organization> | ||
wdt: | |||
<Organization> { | |||
# # is a wikibase Item | |||
rdf:type [wikibase:Item] ; | |||
# Labels, description and aliases | |||
(rdfs:label rdf:langString ; | |||
skos:prefLabel rdf:langString ; | |||
schema:name rdf:langString ; | |||
schema:description rdf:langString? ; | |||
skos:altLabel rdf:langString* ; | |||
)+ ; | |||
# Must be instance of an organization and any subclasses | |||
wdt:P1 @<OrgClass> * ; | |||
# Part of another organization | |||
wdt:P62 @<OrgClass> * ; | |||
# Has another organization part | |||
wdt:P63 @<OrgClass> * ; | |||
# Operating area | |||
wdt:P111 IRI ? ; | |||
# Reference URL | |||
wdt:P31 . ? ; | |||
} | |||
<OrgClass> EXTRA wdt:P2 { | |||
wdt:P2 [ wd:Q4 ] * ; | |||
} | } |
Revision as of 19:38, 25 May 2023
language code | label | description | aliases | edit |
---|---|---|---|---|
en | Organization | schema for describing an organization | edit |
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix schema: <http://schema.org/>
prefix wikibase: <http://wikiba.se/ontology#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix wd: <https://geokb.wikibase.cloud/entity/>
prefix wdt: <https://geokb.wikibase.cloud/prop/direct/>
START = @<Organization>
<Organization> {
# # is a wikibase Item
rdf:type [wikibase:Item] ;
# Labels, description and aliases
(rdfs:label rdf:langString ;
skos:prefLabel rdf:langString ;
schema:name rdf:langString ;
schema:description rdf:langString? ;
skos:altLabel rdf:langString* ;
)+ ;
# Must be instance of an organization and any subclasses
wdt:P1 @<OrgClass> * ;
# Part of another organization
wdt:P62 @<OrgClass> * ;
# Has another organization part
wdt:P63 @<OrgClass> * ;
# Operating area
wdt:P111 IRI ? ;
# Reference URL
wdt:P31 . ? ;
}
<OrgClass> EXTRA wdt:P2 {
wdt:P2 [ wd:Q4 ] * ;
}