Skip to content
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

BDRSPS-875 Updated all dcterms namespaced iris to sdo equivalent for current templates and associated shared code. #252

Merged
merged 3 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions abis_mapping/base/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ def add_default_dataset(
"""
# Add Default Dataset to Graph
graph.add((uri, a, utils.namespaces.TERN.Dataset))
graph.add((uri, rdflib.DCTERMS.title, rdflib.Literal(self.DATASET_DEFAULT_NAME)))
graph.add((uri, rdflib.DCTERMS.description, rdflib.Literal(self.DATASET_DEFAULT_DESCRIPTION)))
graph.add((uri, rdflib.DCTERMS.issued, types.temporal.Date.today().to_rdf_literal()))
graph.add((uri, rdflib.SDO.name, rdflib.Literal(self.DATASET_DEFAULT_NAME)))
graph.add((uri, rdflib.SDO.description, rdflib.Literal(self.DATASET_DEFAULT_DESCRIPTION)))
graph.add((uri, rdflib.SDO.dateIssued, types.temporal.Date.today().to_rdf_literal()))

def add_geometry_supplied_as(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix tern: <https://w3id.org/tern/ontologies/tern/> .
Expand Down Expand Up @@ -920,138 +921,138 @@
tern:hasValue <http://createme.org/value/taxonRank/16> .

<http://createme.org/bdr-cv/attribute/basisOfRecord/new-basis-of-record> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/attribute/basisOfRecord> ;
skos:definition "A type of basisOfRecord." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/dd085299-ae86-4371-ae15-61dfa432f924> ;
skos:prefLabel "new basis of record" .

<http://createme.org/bdr-cv/attribute/identificationQualifier/new-identification-qualifier> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/attribute/identificationQualifier> ;
skos:definition "A type of identificationQualifier." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/dd085299-ae86-4371-ae15-61dfa432f924> ;
skos:prefLabel "new identification qualifier" .

<http://createme.org/bdr-cv/attribute/kingdom/new-kingdom> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/attribute/kingdom> ;
skos:definition "A type of kingdom." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/dd085299-ae86-4371-ae15-61dfa432f924> ;
skos:prefLabel "new kingdom" .

<http://createme.org/bdr-cv/attribute/preparations/Wet-in-ethanol-or-some-other-preservative> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/attribute/preparations> ;
skos:definition "A type of preparations." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/dd085299-ae86-4371-ae15-61dfa432f924> ;
skos:prefLabel "Wet (in ethanol or some other preservative)" .

<http://createme.org/bdr-cv/attribute/preparations/new-preparations> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/attribute/preparations> ;
skos:definition "A type of preparations." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/dd085299-ae86-4371-ae15-61dfa432f924> ;
skos:prefLabel "new preparations" .

<http://createme.org/bdr-cv/attribute/taxonRank/new-taxon-rank> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/attribute/taxonRank> ;
skos:definition "A type of taxonRank." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/dd085299-ae86-4371-ae15-61dfa432f924> ;
skos:prefLabel "new taxon rank" .

<http://createme.org/bdr-cv/featureType/occurrence/kingdom/new-kingdom> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:definition "The existence of the organism from this kingdom sampled at a particular place at a particular time." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/68af3d25-c801-4089-afff-cf701e2bd61d> ;
skos:prefLabel "new kingdom occurrence" .

<http://createme.org/bdr-cv/featureType/specimen/kingdom/new-kingdom> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:definition "A specimen sampled from an organism of this kingdom." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/68af3d25-c801-4089-afff-cf701e2bd61d> ;
skos:prefLabel "new kingdom specimen" .

<http://createme.org/bdr-cv/methods/samplingProtocol/new-sampling-protocol> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/methods/samplingProtocol> ;
skos:definition "A type of samplingProtocol." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/2fd44aca-168f-4177-b393-0688ce38102c> ;
skos:prefLabel "new sampling protocol" .

<http://createme.org/bdr-cv/methods/sequencingMethod/Sanger-dideoxy-sequencing> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/methods/sequencingMethod> ;
skos:definition "A type of sequencingMethod." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/2fd44aca-168f-4177-b393-0688ce38102c> ;
skos:prefLabel "Sanger dideoxy sequencing" .

<http://createme.org/bdr-cv/methods/sequencingMethod/new-sequencing-method> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/methods/sequencingMethod> ;
skos:definition "A type of sequencingMethod." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/2fd44aca-168f-4177-b393-0688ce38102c> ;
skos:prefLabel "new sequencing method" .

<http://createme.org/bdr-cv/methods/threatStatusCheckProtocol/Check-against-Threatened-and-Priority-Fauna-List-WA-available-from-https//www-dpaw-wa-gov-au/plants-and-animals/threatened-species-and-communities/threatened-animals-Last-updated-13-June-2022> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/methods/threatStatusCheckProtocol> ;
skos:definition "A type of threatStatusCheckProtocol." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/2fd44aca-168f-4177-b393-0688ce38102c> ;
skos:prefLabel "Check against Threatened and Priority Fauna List WA available from https://www.dpaw.wa.gov.au/plants-and-animals/threatened-species-and-communities/threatened-animals. Last updated 13 June 2022" .

<http://createme.org/bdr-cv/methods/threatStatusCheckProtocol/a-random-selection> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/methods/threatStatusCheckProtocol> ;
skos:definition "A type of threatStatusCheckProtocol." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/2fd44aca-168f-4177-b393-0688ce38102c> ;
skos:prefLabel "a random selection" .

<http://createme.org/bdr-cv/parameter/establishmentMeans/new-establishment-means> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/parameter/establishmentMeans> ;
skos:definition "A type of establishmentMeans." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/5699eca7-9ef0-47a6-bcfb-9306e0e2b85e> ;
skos:prefLabel "new establishment means" .

<http://createme.org/bdr-cv/parameter/lifeStage/new-life-stage> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/parameter/lifeStage> ;
skos:definition "A type of lifeStage." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/5699eca7-9ef0-47a6-bcfb-9306e0e2b85e> ;
skos:prefLabel "new life stage" .

<http://createme.org/bdr-cv/parameter/occurrenceStatus/new-occurrence-status> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/parameter/occurrenceStatus> ;
skos:definition "A type of occurrenceStatus." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/5699eca7-9ef0-47a6-bcfb-9306e0e2b85e> ;
skos:prefLabel "new occurrence status" .

<http://createme.org/bdr-cv/parameter/reproductiveCondition/No-breeding-evident> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/parameter/reproductiveCondition> ;
skos:definition "A type of reproductiveCondition." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/5699eca7-9ef0-47a6-bcfb-9306e0e2b85e> ;
skos:prefLabel "No breeding evident" .

<http://createme.org/bdr-cv/parameter/reproductiveCondition/new-reproductiveCondition> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/parameter/reproductiveCondition> ;
skos:definition "A type of reproductiveCondition." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/5699eca7-9ef0-47a6-bcfb-9306e0e2b85e> ;
skos:prefLabel "new reproductiveCondition" .

<http://createme.org/bdr-cv/parameter/sex/new-sex> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/parameter/sex> ;
skos:definition "A type of sex." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/5699eca7-9ef0-47a6-bcfb-9306e0e2b85e> ;
skos:prefLabel "new sex" .

<http://createme.org/bdr-cv/parameter/threatStatus/WA/new-threat-status> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/parameter/threatStatus> ;
skos:definition "A type of threatStatus." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/5699eca7-9ef0-47a6-bcfb-9306e0e2b85e> ;
Expand Down Expand Up @@ -1529,21 +1530,21 @@
tern:hasValue <http://createme.org/value/dataGeneralizations/16> .

<http://createme.org/bdr-cv/attribute/identificationQualifier/> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/attribute/identificationQualifier> ;
skos:definition "A type of identificationQualifier." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/dd085299-ae86-4371-ae15-61dfa432f924> ;
skos:prefLabel "?" .

<http://createme.org/bdr-cv/methods/identificationMethod/Visually-identified-in-the-field-sighting> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/methods/identificationMethod> ;
skos:definition "A type of identificationMethod." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/2fd44aca-168f-4177-b393-0688ce38102c> ;
skos:prefLabel "Visually identified in the field (sighting)" .

<http://createme.org/bdr-cv/methods/identificationMethod/new-identification-method> a skos:Concept ;
dcterms:source "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
schema:citation "http://createme.org/dataset/Example-Incidental-Occurrence-Dataset"^^xsd:anyURI ;
skos:broader <http://example.com/bdr-cv/methods/identificationMethod> ;
skos:definition "A type of identificationMethod." ;
skos:inScheme <http://linked.data.gov.au/def/tern-cv/2fd44aca-168f-4177-b393-0688ce38102c> ;
Expand Down Expand Up @@ -2063,9 +2064,9 @@
foaf:name "Stream Environment and Water Pty Ltd" .

<http://createme.org/dataset/Example-Incidental-Occurrence-Dataset> a tern:Dataset ;
dcterms:description "Example Incidental Occurrence Dataset by Gaia Resources" ;
dcterms:issued "2024-03-13"^^xsd:date ;
dcterms:title "Example Incidental Occurrence Dataset" .
schema:description "Example Incidental Occurrence Dataset by Gaia Resources" ;
schema:dateIssued "2024-03-13"^^xsd:date ;
schema:name "Example Incidental Occurrence Dataset" .

[] a rdf:Statement ;
geo:hasGeometry [ a geo:Geometry ;
Expand Down
Loading