{"id":26864405,"url":"https://github.com/ad4gd/pilot-1-water-quality-semantics","last_synced_at":"2025-03-31T03:39:09.829Z","repository":{"id":255484035,"uuid":"851476186","full_name":"AD4GD/pilot-1-water-quality-semantics","owner":"AD4GD","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-11T14:34:06.000Z","size":114,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-11T15:38:25.821Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AD4GD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-03T07:00:57.000Z","updated_at":"2024-12-11T14:35:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"a95b7a3f-3e66-4fed-844b-1feb0bd49547","html_url":"https://github.com/AD4GD/pilot-1-water-quality-semantics","commit_stats":null,"previous_names":["ad4gd/pilot-1-water-quality"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AD4GD%2Fpilot-1-water-quality-semantics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AD4GD%2Fpilot-1-water-quality-semantics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AD4GD%2Fpilot-1-water-quality-semantics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AD4GD%2Fpilot-1-water-quality-semantics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AD4GD","download_url":"https://codeload.github.com/AD4GD/pilot-1-water-quality-semantics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413263,"owners_count":20773053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-31T03:39:09.324Z","updated_at":"2025-03-31T03:39:09.819Z","avatar_url":"https://github.com/AD4GD.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pilot 1 - water quality \u0026 semantics\n\n## Semantic uplift\n\nThe following files are semantically uplifted and published in the\n[OGC RAINBOW hosted instance](https://defs-dev.opengis.net/vocprez-hosted):\n\n* `generic/properties.yml`: AD4GD properties\n* `generic/procedures.yml`: AD4GD procedures\n* `generic/sensors.yml`: AD4GD sensors\n* `generic/sensor-manufacturers.yml`: AD4GD sensor manufacturers\n\nNew uplift entries can be configured inside `.ogc/catalog.ttl`\n(see [Documentation and tutorials](#documentation-and-tutorials) below).\n\nPlease bear in mind that any `.ttl` files that you may find in this repository (apart from `.ogc/catalog.ttl`)\nare most certainly going to be auto-generated, and thus you should not edit them directly because your changes\nwill be lost. The repository is set up to work with YAML/JSON files and JSON-LD uplift definitions (`*-uplift.yml`\nfiles), and to generate (and publish) their RDF representations automatically.\n\n### Documentation and tutorials\n\n* [Example domain definition (like `.ogc/catalog.ttl`)](https://opengeospatial.github.io/ogc-na-tools/examples/#sample-domain-configuration)\n* [How to create a JSON-LD uplift context definition](https://opengeospatial.github.io/ogc-na-tools/tutorials/#how-to-create-a-json-ld-uplift-context-definition)\n\n## The data model\n\nA simplified version of the pilot data model employed is shown below.\n\n![AD4GD model](https://raw.githubusercontent.com/AD4GD/pilot-3-air-quality/main/assets/ad4gd-model.png)\n\nFurther discussion on the rationale for some of the modeling decisions (such as how to link units of\nmeasure and procedures to sensor definitions) can be found in\n[this document](https://docs.google.com/document/d/1fzEKymhmAB4dVEEgJE3XXf4DTzPS60oj3wYzJQrZcrE/edit?usp=sharing).\n\n### Working with observations\n\nAn example of a sensor type defined according to the model above could be (some properties omitted for clarity):\n\n```turtle\n\u003chttps://w3id.org/ad4gd/sensors/Nova-Fitness/SDS011\u003e a skos:Concept, owl:Class ;\n  rdfs:subClassOf sosa:Sensor ;\n  sosa:observes [\n    qudt:hasUnit unit:MicroGM-PER-M3 ;\n    skos:broader ad4gd-prop:pm10 ;\n    ssn:implements [ qb:order 1 ; skos:broader ad5gd-procedure:pm-humidity-correction ] ;\n  ]\n.\n```\n\nThis would represent a sensor that observes PM10 concentration (`ad4gd-prop:pm10`) using μg/m³ (`unit:MicroGM-PER-M3`),\nand implementing a humidity correction procedure (`ad5gd-procedure:pm-humidity-correction`).\n\nApart from their numeric value, it is expected that observations will only include a reference to the\nsensor type and a reference to the generalized observable property that has been measured. So, for example, we would\nhave:\n\n```turtle\n_:obs75134 a sosa:Observation ;\n  sosa:madeBySensor [\n    a \u003chttps://w3id.org/ad4gd/sensors/Nova-Fitness/SDS011\u003e ;\n    dct:identifier \"SN/2313Q432\"\n  ] ;\n  sosa:observedProperty ad4gd-prop:pm10 ;\n  sosa:hasSimpleResult 0.323 ;\n.\n```\n\nThe above observation was made by a sensor of type SDS011 with serial number \"SN/2313Q432\", its observed property is\nPM10, and it has a result of 0.323. If a consumer encounters this observation, it can retrieve the information about the\nsensor type and match the observed property to the one declared inside its `sosa:observes`, making it possible to infer\nnew metadata, resulting in the following full description for the observation:\n\n```turtle\n_:obs75134 a sosa:Observation ;\n  sosa:madeBySensor [\n    a \u003chttps://w3id.org/ad4gd/sensors/Nova-Fitness/SDS011\u003e ;\n    dct:identifier \"SN/2313Q432\"\n  ] ;\n  sosa:observedProperty ad4gd-prop:pm10 ;\n  sosa:hasSimpleResult 0.323 ;\n  sosa:hasResult [\n    qudt:numericValue 0.323 ;\n    qudt:unit unit:MicroGM-PER-M3 ;\n  ] ;\n  sosa:usedProcedure [ qb:order 1 ; skos:broader ad5gd-procedure:pm-humidity-correction ] ;\n.\n```\n\n### The SOSA model\n\nFor reference, the observation perspective of the [SOSA/SSN ontology](https://www.w3.org/TR/vocab-ssn/) model follows.\n\n![SOSA-SSN Model](https://raw.githubusercontent.com/AD4GD/pilot-3-air-quality/main/assets/sosa_model.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad4gd%2Fpilot-1-water-quality-semantics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fad4gd%2Fpilot-1-water-quality-semantics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad4gd%2Fpilot-1-water-quality-semantics/lists"}