diff --git a/abis_mapping/templates/incidental_occurrence_data_v3/examples/margaret_river_flora/margaret_river_flora.ttl b/abis_mapping/templates/incidental_occurrence_data_v3/examples/margaret_river_flora/margaret_river_flora.ttl index 5410708c..0609b871 100644 --- a/abis_mapping/templates/incidental_occurrence_data_v3/examples/margaret_river_flora/margaret_river_flora.ttl +++ b/abis_mapping/templates/incidental_occurrence_data_v3/examples/margaret_river_flora/margaret_river_flora.ttl @@ -17,57 +17,57 @@ tern:hasSimpleValue "Category 1 - The Department of Biodiversity and Conservation" ; tern:hasValue . - a tern:SampleCollection ; + a tern:Collection ; void:inDataset ; sosa:hasMember ; schema:identifier "Occurrence Collection - Basis Of Record - HumanObservation" ; tern:hasAttribute . - a tern:SampleCollection ; + a tern:Collection ; void:inDataset ; sosa:hasMember , ; schema:identifier "Occurrence Collection - Basis Of Record - PreservedSpecimen" ; tern:hasAttribute . - a tern:SampleCollection ; + a tern:Collection ; void:inDataset ; sosa:hasMember ; schema:identifier "Occurrence Collection - Basis Of Record - new basis of record" ; tern:hasAttribute . - a tern:SampleCollection ; + a tern:Collection ; void:inDataset ; sosa:hasMember ; schema:identifier "Occurrence Collection - Data Generalizations - Coordinates generalised" ; tern:hasAttribute . - a tern:SampleCollection ; + a tern:Collection ; void:inDataset ; sosa:hasMember , ; schema:identifier "Occurrence Collection - Data Generalizations - Coordinates rounded to the nearest 10 km for conservation concern" ; tern:hasAttribute . - a tern:SampleCollection ; + a tern:Collection ; void:inDataset ; sosa:hasMember ; schema:identifier "Occurrence Collection - Habitat - Closed forest of Melaleuca lanceolata. White, grey or brown sand, sandy loam." ; tern:hasAttribute . - a tern:SampleCollection ; + a tern:Collection ; void:inDataset ; sosa:hasMember ; schema:identifier "Occurrence Collection - Habitat - new habitat" ; tern:hasAttribute . - a tern:SampleCollection ; + a tern:Collection ; void:inDataset ; sosa:hasMember ; schema:identifier "Occurrence Collection - Preparations - Wet (in ethanol or some other preservative)" ; tern:hasAttribute . - a tern:SampleCollection ; + a tern:Collection ; void:inDataset ; sosa:hasMember ; schema:identifier "Occurrence Collection - Preparations - new preparations" ; diff --git a/abis_mapping/templates/incidental_occurrence_data_v3/mapping.py b/abis_mapping/templates/incidental_occurrence_data_v3/mapping.py index 04a1977e..d8612307 100644 --- a/abis_mapping/templates/incidental_occurrence_data_v3/mapping.py +++ b/abis_mapping/templates/incidental_occurrence_data_v3/mapping.py @@ -1979,7 +1979,7 @@ def add_data_generalizations_sample_collection( return # Add type - graph.add((uri, a, utils.namespaces.TERN.SampleCollection)) + graph.add((uri, a, utils.namespaces.TERN.Collection)) # Add identifier if data_generalizations: graph.add( @@ -2296,7 +2296,7 @@ def add_habitat_sample_collection( return # Add type - graph.add((uri, a, utils.namespaces.TERN.SampleCollection)) + graph.add((uri, a, utils.namespaces.TERN.Collection)) # Add identifier if habitat: graph.add((uri, rdflib.SDO.identifier, rdflib.Literal(f"Occurrence Collection - Habitat - {habitat}"))) @@ -2401,7 +2401,7 @@ def add_basis_sample_collection( return # Add type - graph.add((uri, a, utils.namespaces.TERN.SampleCollection)) + graph.add((uri, a, utils.namespaces.TERN.Collection)) # Add identifier if basis_of_record: graph.add( @@ -2628,7 +2628,7 @@ def add_preparations_sample_collection( return # Add type - graph.add((uri, a, utils.namespaces.TERN.SampleCollection)) + graph.add((uri, a, utils.namespaces.TERN.Collection)) # Add identifier if preparations: graph.add(