-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feature/mini geo ontology #376
Draft
kwahlin
wants to merge
2
commits into
develop
Choose a base branch
from
feature/mini-geo-ontology
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
@prefix gn: <https://www.geonames.org/ontology#> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix wd: <http://www.wikidata.org/entity/> . | ||
@prefix : <https://id.kb.se/vocab/> . | ||
|
||
:GeographicRegion a owl:Class ; | ||
rdfs:label "Geografiskt område"@sv, "Geographic region"@en ; | ||
rdfs:subClassOf :Place ; | ||
owl:equivalentClass wd:Q82794 . | ||
|
||
#################################### | ||
|
||
:AdministrativeRegion a owl:Class ; | ||
rdfs:label "Administrativt/politiskt avgränsat område"@sv, "Administrative region"@en ; | ||
rdfs:subClassOf :GeographicRegion ; | ||
owl:equivalentClass gn:A.ADMD, wd:Q56061 . | ||
|
||
:CountrySubdivisionOfSpecificLevel a owl:Class ; | ||
rdfs:label "Administrativ underindelning av ett land på en specifik nivå"@sv, "Country subdivision of a specific level"@en ; | ||
rdfs:subClassOf :AdministrativeRegion ; | ||
owl:equivalentClass wd:Q1799794 . | ||
|
||
:FirstOrderCountrySubdivision a owl:Class ; | ||
rdfs:label "Första ordningens administrativ underindelning av ett land"@sv, "First-order administrative country subdivision"@en ; | ||
rdfs:subClassOf :CountrySubdivisionOfSpecificLevel ; | ||
owl:equivalentClass gn:A.ADM1, wd:Q10864048 . | ||
|
||
:SecondOrderCountrySubdivision a owl:Class ; | ||
rdfs:label "Andra ordningens administrativ underindelning av ett land"@sv, "Second-order administrative country subdivision"@en ; | ||
rdfs:subClassOf :CountrySubdivisionOfSpecificLevel ; | ||
owl:equivalentClass gn:A.ADM2, wd:Q13220204 . | ||
|
||
:ThirdOrderCountrySubdivision a owl:Class ; | ||
rdfs:label "Tredje ordningens administrativ underindelning av ett land"@sv, "Third-order administrative country subdivision"@en ; | ||
rdfs:subClassOf :CountrySubdivisionOfSpecificLevel ; | ||
owl:equivalentClass gn:A.ADM3, wd:Q13221722 . | ||
|
||
:FourthOrderCountrySubdivision a owl:Class ; | ||
rdfs:label "Fjärde ordningens administrativ underindelning av ett land"@sv, "Fourth-order administrative country subdivision"@en ; | ||
rdfs:subClassOf :CountrySubdivisionOfSpecificLevel ; | ||
owl:equivalentClass gn:A.ADM4, wd:Q14757767 . | ||
|
||
:FifthOrderCountrySubdivision a owl:Class ; | ||
rdfs:label "Femte ordningens administrativ underindelning av ett land"@sv, "Fifth-order administrative country subdivision"@en ; | ||
rdfs:subClassOf :CountrySubdivisionOfSpecificLevel ; | ||
owl:equivalentClass gn:A.ADM5, wd:Q15640612 . | ||
|
||
## First order country subdivisions | ||
:CountyOfSweden a owl:Class ; | ||
rdfs:label "Län"@sv, "County of Sweden"@en ; | ||
rdfs:subClassOf :FirstOrderCountrySubdivision ; | ||
owl:equivalentClass wd:Q200547 . | ||
|
||
:CountyOfNorway a owl:Class ; | ||
rdfs:label "Fylke"@sv, "County of Norway"@en ; | ||
rdfs:subClassOf :FirstOrderCountrySubdivision ; | ||
owl:equivalentClass wd:Q192299 . | ||
|
||
:RegionOfFinland a owl:Class ; | ||
rdfs:label "Landskap i Finland"@sv, "Region of Finland"@en ; | ||
rdfs:subClassOf :FirstOrderCountrySubdivision ; | ||
owl:equivalentClass wd:Q193512 . | ||
|
||
:USState a owl:Class ; | ||
rdfs:label "Delstat i USA"@sv, "U.S. state"@en ; | ||
rdfs:subClassOf :FirstOrderCountrySubdivision ; | ||
owl:equivalentClass wd:Q35657 . | ||
|
||
# Add equivalents for Spain, France, Italy et al.? | ||
# ISO 3166 subdivisions could be helpful https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes | ||
|
||
## Second order country subdivisions | ||
:MunicipalityOfSweden a owl:Class ; | ||
rdfs:label "Kommun i Sverige"@sv, "Municipality of Sweden"@en ; | ||
rdfs:subClassOf :SecondOrderCountrySubdivision ; | ||
owl:equivalentClass wd:Q35657 . | ||
|
||
# MunicipalityOfSweden sufficient at 2nd level? | ||
# E.g. Great Britain have many different types of second level subdivisions https://en.wikipedia.org/wiki/ISO_3166-2:GB | ||
# Probably overkill to try and catch all variants for various countries. Should be fine with just | ||
# <ExamplePlace> a :SecondOrderCountrySubdivision ; | ||
# :country <GreatBritain> . | ||
|
||
#################################### | ||
|
||
:PopulatedPlace a owl:Class ; | ||
rdfs:label "Befolkad plats"@sv, "Populated place"@en ; | ||
rdfs:subClassOf :Place ; | ||
owl:equivalentClass gn:P.PPL, wd:Q486972 . | ||
|
||
:UrbanArea a owl:Class ; | ||
rdfs:label "Tätbebyggd/tätbefolkad ort"@sv, "Urban area"@en ; | ||
rdfs:subClassOf :PopulatedPlace ; | ||
owl:equivalentClass [ owl:unionOf ( wd:Q702492 wd:Q7930989 ) ] . | ||
|
||
:City a owl:Class ; | ||
rdfs:label "Stad"@sv, "City"@en ; | ||
rdfs:subClassOf :UrbanArea ; | ||
owl:equivalentClass wd:Q515 . | ||
|
||
:Village a owl:Class ; | ||
rdfs:label "Mindre ort/by"@sv, "Village"@en ; | ||
rdfs:subClassOf :PopulatedPlace ; | ||
owl:equivalentClass [ owl:unionOf ( wd:Q532 wd:Q14839548 ) ] . | ||
|
||
# We have in Wikidata: | ||
# wd:Q14839548 rdfs:label "minor locality in Sweden" ; | ||
# wdt:P279 wd:Q702492 . | ||
# meaning that "minor locality in Sweden" (Q14839548) is a subclass of "Urban Area" (Q702492) which seems a bit odd | ||
# hence the ad hoc mapping of Q14839548 to :Village | ||
|
||
#################################### | ||
|
||
:BodyOfWater a owl:Class ; | ||
rdfs:label "Vattensamling"@sv, "Body of water"@en ; | ||
rdfs:subClassOf :GeographicRegion ; | ||
owl:equivalentClass wd:Q15324 . | ||
|
||
:Lake a owl:Class ; | ||
rdfs:label "Sjö"@sv, "Lake"@en ; | ||
rdfs:subClassOf :BodyOfWater ; | ||
owl:equivalentClass wd:Q23397 . | ||
|
||
:Sea a owl:Class ; | ||
rdfs:label "Hav"@sv, "Sea"@en ; | ||
rdfs:subClassOf :BodyOfWater ; | ||
owl:equivalentClass [ owl:unionOf ( wd:Q165 wd:Q9430 ) ] . | ||
|
||
:Watercourse a owl:Class ; | ||
rdfs:label "Vattendrag"@sv, "Watercourse"@en ; | ||
rdfs:subClassOf :BodyOfWater ; | ||
owl:equivalentClass gn:H.WTRC, wd:Q355304 . | ||
|
||
#################################### | ||
|
||
:Landscape a owl:Class ; | ||
rdfs:label "Landskap/landform"@sv, "Landscape/landform"@en ; | ||
rdfs:subClassOf :Place ; | ||
owl:equivalentClass [ owl:unionOf ( wd:Q107425 wd:Q271669 ) ] . | ||
|
||
:Island a owl:Class ; | ||
rdfs:label "Ö eller ögrupp"@sv, "Island or island group"@en ; | ||
rdfs:subClassOf :Landscape ; | ||
owl:equivalentClass [ owl:unionOf ( wd:Q23442 wd:Q1402592 ) ] . | ||
|
||
:Mountain a owl:Class ; | ||
rdfs:label "Berg eller bergskedja"@sv, "Mountain or mountain range"@en ; | ||
rdfs:subClassOf :Landscape ; | ||
owl:equivalentClass [ owl:unionOf ( wd:Q8502 wd:Q46831 ) ] . | ||
|
||
:NatureReserve a owl:Class ; | ||
rdfs:label "Naturreservat"@sv, "Nature reserve"@en ; | ||
rdfs:subClassOf :Landscape ; | ||
owl:equivalentClass gn:L.RESN, wd:Q179049 . | ||
|
||
:Park a owl:Class ; | ||
rdfs:label "Park"@sv, "Park"@en ; | ||
rdfs:subClassOf :Landscape ; | ||
owl:equivalentClass gn:L.PRK, wd:Q22698 . | ||
|
||
#################################### | ||
|
||
:Construction a owl:Class ; | ||
rdfs:label "Byggnadsverk/facilitet"@sv, "Construction/facility"@en ; | ||
rdfs:subClassOf :Place ; | ||
owl:equivalentClass [ owl:unionOf ( wd:Q811430 wd:Q13226383 ) ] . | ||
|
||
:Building a owl:Class ; | ||
rdfs:label "Byggnad"@sv, "Building"@en ; | ||
rdfs:subClassOf :Construction ; | ||
owl:equivalentClass gn:S.BLDG, wd:Q41176 . | ||
|
||
:Route a owl:Class ; | ||
rdfs:label "Väg"@sv, "Route"@en ; | ||
rdfs:subClassOf :Construction ; | ||
owl:equivalentClass wd:Q83620 . | ||
|
||
:Street a owl:Class ; | ||
rdfs:label "Gata"@sv, "Street"@en ; | ||
rdfs:subClassOf :Route ; | ||
owl:equivalentClass gn:R.ST, wd:Q811430 . |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.