Skip to content

Commit

Permalink
Merge pull request #4 from icsm-au/addr
Browse files Browse the repository at this point in the history
Addresses, GeoNames, TransNets vocabs & UNGGIM themes for all vocs
  • Loading branch information
nicholascar authored Aug 27, 2024
2 parents 3638e8f + 00518c6 commit fe48a6e
Show file tree
Hide file tree
Showing 114 changed files with 26,265 additions and 105 deletions.
13 changes: 9 additions & 4 deletions tests/test_vocabs_validity.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from rdflib import Graph

REPO_DIR = Path(__file__).parent.parent.resolve()
VOCABS_DIR = REPO_DIR / "vocabs"


@pytest.fixture
Expand All @@ -17,10 +18,11 @@ def _get_vocpub_graph() -> Graph:

def _get_vocab_files() -> List[Path]:
vocab_directories = [
REPO_DIR / "cadastre",
# REPO_DIR / "geocoded-addressing",
# REPO_DIR / "transport",
# REPO_DIR / "place-names",
VOCABS_DIR,
# VOCABS_DIR / "Addresses",
# VOCABS_DIR / "LandParcels",
# VOCABS_DIR / "GeographicalNames",
# VOCABS_DIR / "TransportNetworks",
]
files = []

Expand All @@ -39,3 +41,6 @@ def test_vocabs(vocab_file: List[Path], _get_vocpub_graph: Graph):
)

assert conforms, f"{vocab_file} failed:\n{results_text}"

vocab_file: Path
Graph().parse(vocab_file).serialize(destination=vocab_file, format="longturtle")
158 changes: 158 additions & 0 deletions vocabs/Addresses/addr-classes.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
PREFIX : <https://linked.data.gov.au/def/address-classes/>
PREFIX astatus: <https://linked.data.gov.au/def/reg-statuses/>
PREFIX cs: <https://linked.data.gov.au/def/address-classes>
PREFIX droles: <https://linked.data.gov.au/def/data-roles/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX reg: <http://purl.org/linked-data/registry#>
PREFIX schema: <https://schema.org/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX unggim: <https://linked.data.gov.au/def/unggim-themes/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

:landmark
a skos:Concept ;
skos:altLabel "LA"@en ;
skos:definition "Addresses that specify a location by reference to a named landmark"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:prefLabel "Landmark"@en ;
.

:postal
a skos:Concept ;
skos:altLabel "PO"@en ;
skos:definition "Addresses that specify points of postal delivery which have no definite relation to the location of the recipient, such as post office boxes, overseas defence force addresses, and general delivery offices"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:prefLabel "Postal"@en ;
.

:street
a skos:Concept ;
skos:altLabel "ST"@en ;
skos:definition "Address assigned according to one of the standards for a site accessed from a road"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:narrower
:street-rural ,
:street-urban ;
skos:prefLabel "Street"@en ;
.

:street-rural
a skos:Concept ;
skos:altLabel "RU"@en ;
skos:definition "Address assigned according to the standard for a site accessed from a rural road"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:prefLabel "Rural"@en ;
.

:street-urban
a skos:Concept ;
skos:altLabel "UR"@en ;
skos:definition "Address assigned according to the standard for a site accessed from an urban road"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:prefLabel "Urban"@en ;
.

:thoroughfare
a skos:Concept ;
skos:altLabel "TH"@en ;
skos:definition "Addresses that specify a location by reference to a thoroughfare. A thoroughfare is an access route such as road or waterway along which an address access point can be determined"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:narrower
:street ,
:water ;
skos:prefLabel "Thoroughfare"@en ;
.

:unknown
a skos:Concept ;
skos:altLabel "U"@en ;
skos:definition "Unknown address assignation standard"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:prefLabel "Unknown"@en ;
.

:water
a skos:Concept ;
skos:altLabel "WA"@en ;
skos:definition "Address assigned according to one of the standards for a site accessed from a water feature or island"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:narrower
:water-inlet ,
:water-island ,
:water-river ;
skos:prefLabel "Water"@en ;
.

:water-inlet
a skos:Concept ;
skos:altLabel "IN"@en ;
skos:definition "Address assigned according to the standard for a site accessed from an inlet or bay"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:prefLabel "Inlet"@en ;
.

:water-island
a skos:Concept ;
skos:altLabel "IS"@en ;
skos:definition "Address assigned according to the standard for a site on an island with no road access"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:prefLabel "Island"@en ;
.

:water-river
a skos:Concept ;
skos:altLabel "RI"@en ;
skos:definition "Address assigned according to the standard for a site accessed from a river or creek"@en ;
skos:historyNote "Queensland address data" ;
skos:inScheme cs: ;
skos:prefLabel "River"@en ;
.

<https://linked.data.gov.au/org/qsi>
a schema:Organization ;
schema:name "Queensland Spatial Information" ;
schema:url "https://www.resources.qld.gov.au/data-mapping"^^xsd:anyURI ;
.

<https://linked.data.gov.au/org/icsm>
a schema:Organization ;
schema:name "Intergovernmental Committee on Surveying & Mapping" ;
schema:url "https://icsm.gov.au"^^xsd:anyURI ;
.

cs:
a skos:ConceptScheme ;
reg:status astatus:experimental ;
owl:versionIRI :1.0 ;
owl:versionInfo "1.0" ;
skos:definition "This vocabulary describes the address classes or types used in address allocation. "@en ;
skos:hasTopConcept
:landmark ,
:postal ,
:thoroughfare ,
:unknown ;
skos:historyNote "This vocabulary was created by the Queensland Spatial Information services." ;
skos:prefLabel "Address Classes"@en ;
prov:qualifiedAttribution
[
prov:agent <https://linked.data.gov.au/org/icsm> ;
prov:hadRole droles:custodian ;
] ;
schema:creator <https://linked.data.gov.au/org/qsi> ;
schema:dateCreated "2023-06-01"^^xsd:date ;
schema:dateModified "2023-11-30"^^xsd:date ;
schema:identifier "address-classes"^^xsd:token ;
schema:keywords unggim:Addresses ;
schema:publisher <https://linked.data.gov.au/org/icsm> ;
.
Loading

0 comments on commit fe48a6e

Please sign in to comment.