Skip to content
Snippets Groups Projects
Commit a2ffa745 authored by Raul Palma's avatar Raul Palma
Browse files

PSNC copy

parent ec2ef78e
No related branches found
No related tags found
No related merge requests found
Showing
with 1084 additions and 57 deletions
# importing base image
FROM ubuntu:22.04
# security updates and installing system dependencies
RUN /bin/bash -c "set -euo pipefail \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get -y upgrade \
&& apt install -y git --no-install-recommends \
&& apt install wget --no-install-recommends \
&& apt-get install apt-transport-https curl gnupg -yqq \
&& apt install openssh-server -y --no-install-recommends \
&& apt-get install -y openjdk-8-jdk --no-install-recommends \
&& apt install -y python3.10-venv --no-install-recommends \
&& echo 'deb https://repo.scala-sbt.org/scalasbt/debian all main' | tee /etc/apt/sources.list.d/sbt.list \
&& echo 'deb https://repo.scala-sbt.org/scalasbt/debian /' | tee /etc/apt/sources.list.d/sbt_old.list \
&& curl -sL 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823' | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import \
&& chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg \
&& apt-get update \
&& apt-get install sbt \
&& rm -rf /var/lib/apt/lists/*"
# installing maven and adding it to the path
RUN wget --no-verbose -O /tmp/apache-maven-3.9.6-bin.tar.gz https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz && \
tar xzf /tmp/apache-maven-3.9.6-bin.tar.gz -C /opt/ && \
ln -s /opt/apache-maven-3.9.6 /opt/maven && \
ln -s /opt/maven/bin/mvn /usr/local/bin && \
rm -f /tmp/apache-maven-3.9.6-bin.tar.gz
ENV MAVEN_HOME /opt/maven
# creating dedicated user to avoid running container as a root
RUN useradd --create-home pipelines_user
WORKDIR /home/pipelines_user
USER pipelines_user
# creating .ssh directory and a file that will store fingerprints
RUN cd ~ \
&& mkdir .ssh \
&& cd .ssh \
&& touch known_hosts
# cloning rmlmapper tool repository and setting up directories
RUN mkdir -p src \
&& cd src \
&& git clone --branch v5.0.0 https://github.com/RMLio/rmlmapper-java.git \
&& mkdir -p utils/rmlmapper/ \
&& mv rmlmapper-java/* utils/rmlmapper/ \
&& rm -rf rmlmapper-java/
# building rmlmapper jar using maven
RUN cd src/utils/rmlmapper \
&& mvn install -DskipTests
# copying geotriples-binaries repository and setting up directories
RUN cd src \
&& git clone --branch master https://gitlab.pcss.pl/daisd-public/dpi-pipelines/geotriples-binaries.git \
&& mkdir -p utils/GeoTriples/ \
&& mv geotriples-binaries/* utils/GeoTriples/ \
&& rm -rf geotriples-binaries/
# install and build tarql
RUN cd src/utils \
&& git clone --branch master https://github.com/cygri/tarql \
&& cd tarql \
&& mvn clean install -DskipTests
# install and build silk
RUN cd src/utils \
&& git clone --branch v3.5.0 https://github.com/silk-framework/silk.git \
&& cd silk \
&& sbt "project singlemachine" assembly
# installing csv2rdf
RUN wget --no-verbose -O /tmp/csv2rdf-linux.tar.gz https://github.com/Swirrl/csv2rdf/releases/download/v0.7.0/csv2rdf-linux.tar.gz && \
tar xzf /tmp/csv2rdf-linux.tar.gz && \
mkdir -p src/utils/csv2rdf && \
mv csv2rdf src/utils/csv2rdf/ && \
rm -f /tmp/csv2rdf-linux.tar.gz
# copying repository content into a src folder
RUN git clone --branch master https://gitlab.pcss.pl/daisd-public/dpi-pipelines/pipelines.git \
&& mkdir -p src \
&& mv pipelines/* src/ \
&& rm -rf pipelines/
#create virtual environment and install dependencies
RUN /bin/bash -c "python3 -m venv pipelines \
&& source pipelines/bin/activate \
&& cd src \
&& pip install -r requirements.txt"
ENTRYPOINT [ "/bin/bash" ]
LICENSE 0 → 100644
MIT License
Copyright (c) 2020- Poznan Supercomputing and Networking Center (Bogusz Janiak)
Copyright (c) 2020- Poznan Supercomputing and Networking Center (Raul Palma)
Copyright (c) 2020- Poznan Supercomputing and Networking Center (Soumya Brahma)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
\ No newline at end of file
# PSNC Data Harmonization Pipelines
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
```
cd existing_repo
git remote add origin https://gitlab.eclipse.org/rapw3k/psnc-data-harmonization-pipelines.git
git branch -M main
git push -uf origin main
```
## Integrate with your tools
- [ ] [Set up project integrations](https://gitlab.eclipse.org/rapw3k/psnc-data-harmonization-pipelines/-/settings/integrations)
## Collaborate with your team
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
## Test and Deploy
Use the built-in continuous integration in GitLab.
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
***
# Editing this README
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
## Suggestions for a good README
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
## Name
Choose a self-explaining name for your project.
## Description
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
## Badges
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
## Visuals
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
## Installation
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
## Usage
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
## Support
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
## Roadmap
If you have ideas for releases in the future, it is a good idea to list them in the README.
## Contributing
State if you are open to contributions and what your requirements are for accepting them.
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
## Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
## License
For open source projects, say how it is licensed.
## Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
This diff is collapsed.
--- # Configuration for general mapping solution Oilspill
cfg:
TEMPLATE_ID: "oilspills/observationCollection/{`trajectory`}+{`lon`}+{`lat`}"
CONTEXT: ["https://w3id.org/demeter/agri-context.jsonld",
Application: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-aid#Application",
M: "http://qudt.org/vocab/unit/M",
M2: "http://qudt.org/vocab/unit/M2",
crop: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-aid#crop",
iacsId: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-base#iacsId",
isPartOf: "http://purl.org/dc/terms/isPartOf",
description: "http://purl.org/dc/terms/description",
hasBoundingBox: "http://www.opengis.net/ont/geosparql#hasBoundingBox",
GeometryVirt: "http://www.openlinksw.com/schemas/virtrdf#Geometry",
Ontology: "http://www.w3.org/2002/07/owl#Ontology",
Dataset: "http://www.w3.org/ns/dcat#Dataset",
geoJSONLiteral: "http://www.opengis.net/ont/geosparql#geoJSONLiteral",
wktLiteral: "http://www.opengis.net/ont/geosparql#wktLiteral",
identifierScheme: "http://portele.de/ont/inspire/baseInspire#identifierScheme",
shortId: "http://foodie-cloud.com/model/foodie#shortId",
Location: "http://purl.org/dc/terms/Location",
asGeoJSON: "http://www.opengis.net/ont/geosparql#asGeoJSON",
spatial: "http://purl.org/dc/terms/spatial",
bbox: "http://www.w3.org/ns/dcat#bbox",
geometry: "http://www.w3.org/ns/locn#geometry",
referenceArea: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-parcel#referenceArea",
observedPerimeter: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-control#observedPerimeter",
validFrom: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-base#validFrom",
FeatureCollection: "http://www.opengis.net/ont/geosparql#FeatureCollection"]
MAIN TYPE:
"@type": "ObservationCollection"
label: "Oilspills observation collection for trajectory {`trajectory`} longitud {`lon`} latitude {`lat`} - year 2022|<string>"
phenomenonTime: "`time`|<string>"
resultTime: "`time`|<string>"
madeBySensor:
uri: "http://w3id.org/iliad/oilspills/sensor/{`trajectory`}"
"@type": "Sensor"
label: "Simulated sensor for trajectory {`trajectory`}|<string>"
hasFeatureOfInterest:
uri: "http://w3id.org/iliad/oilspills/feature/{`lon`}+{`lat`}"
"@type": ["FeatureOfInterest", "Point", "Location"]
label: "Feature of interest at longitud {`lon`} latitude {`lat`}|<string>"
lat: "`lat`|<float>"
long: "`lon`|<float>"
usedProcedure:
uri: "http://w3id.org/iliad/oilspills/activity/simulation"
"@type": "Procedure"
label: "Simulation|<string>"
hasMember:
"@1":
uri: "http://w3id.org/iliad/oilspills/observation/{`trajectory`}+{`lon`}+{`lat`}/1"
"@type": "Observation"
label: "Oilspills observation for trajectory {`trajectory`} longitude {`lon`} latitude {`lat`} property wind_drift_factor|<string>"
observedProperty:
uri: "http://w3id.org/iliad/oilspills/property/windDriftFactor"
"@type": "ObservableProperty"
label: "Wind drift factor|<string>"
hasSimpleResult: "`wind_drift_factor`|<float>"
"@2":
uri: "http://w3id.org/iliad/oilspills/observation/{`trajectory`}+{`lon`}+{`lat`}/2"
"@type": "Observation"
label: "Oilspills observation for trajectory {`trajectory`} longitude {`lon`} latitude {`lat`} property current_drift_factor|<string>"
observedProperty:
uri: "http://w3id.org/iliad/oilspills/property/currentDriftFactor"
"@type": "ObservableProperty"
label: "Current drift factor|<string>"
hasSimpleResult: "`current_drift_factor`|<float>"
"@3":
uri: "http://w3id.org/iliad/oilspills/observation/{`trajectory`}+{`lon`}+{`lat`}/3"
"@type": "Observation"
label: "Oilspills observation for trajectory {`trajectory`} longitude {`lon`} latitude {`lat`} property terminal_velocity|<string>"
observedProperty:
uri: "http://w3id.org/iliad/oilspills/property/terminalVelocity"
"@type": "ObservableProperty"
label: "Terminal velocity|<string>"
hasSimpleResult: "`terminal_velocity`|<float>"
\ No newline at end of file
--- # Configuration for general mapping solution Lithuania GSAA
cfg:
#TEMPLATE_ID: "2022/Parcel/{`UNIKALUS_I`}"
TEMPLATE_ID: "2022/Parcel/{`OBJECTID`}"
CONTEXT: ["https://w3id.org/demeter/agri-context.jsonld",
Application: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-aid#Application",
M: "http://qudt.org/vocab/unit/M",
M2: "http://qudt.org/vocab/unit/M2",
crop: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-aid#crop",
iacsId: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-base#iacsId",
isPartOf: "http://purl.org/dc/terms/isPartOf",
description: "http://purl.org/dc/terms/description",
hasBoundingBox: "http://www.opengis.net/ont/geosparql#hasBoundingBox",
GeometryVirt: "http://www.openlinksw.com/schemas/virtrdf#Geometry",
Ontology: "http://www.w3.org/2002/07/owl#Ontology",
Dataset: "http://www.w3.org/ns/dcat#Dataset",
geoJSONLiteral: "http://www.opengis.net/ont/geosparql#geoJSONLiteral",
wktLiteral: "http://www.opengis.net/ont/geosparql#wktLiteral",
identifierScheme: "http://portele.de/ont/inspire/baseInspire#identifierScheme",
shortId: "http://foodie-cloud.com/model/foodie#shortId",
Location: "http://purl.org/dc/terms/Location",
asGeoJSON: "http://www.opengis.net/ont/geosparql#asGeoJSON",
spatial: "http://purl.org/dc/terms/spatial",
bbox: "http://www.w3.org/ns/dcat#bbox",
geometry: "http://www.w3.org/ns/locn#geometry",
referenceArea: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-parcel#referenceArea",
observedPerimeter: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-control#observedPerimeter",
validFrom: "http://lpis.ec.europa.eu/registry/applicationschema/cap-iacs-base#validFrom",
FeatureCollection: "http://www.opengis.net/ont/geosparql#FeatureCollection"]
MAIN TYPE:
"@type": ["Feature","Application"]
referenceArea:
uri: ~
"@type": "QuantityValue"
numericValue: "`Shape_Area`|<double>"
unit: "M2"
observedPerimeter:
uri: ~
"@type": "QuantityValue"
numericValue: "`Shape_Leng`|<double>"
unit: "M"
crop: "http://w3id.org/iacs/open/lt/gsaa/code/cropCodeValue/{`PSL_KODAS`}"
label: "Lithuanian GSAA application #{`OBJECTID`} for LPIS block #{`BLK_NR`} field #{`LAUKO_NR`} - year 2022|<string>"
iacsId: "`OBJECTID`|<string>"
identifier: "`OBJECTID`|<token>"
isPartOf:
uri: "http://w3id.org/iacs/open/lt/GSAA/2022"
"@type": FeatureCollection
description: "Collection of Lithuania GSAA data 2022|<string>"
identifier: "GSAA 2022|<token>"
title: "Lithuania GSAA applications collection 2022|<string>"
hasBoundingBox:
uri: "http://w3id.org/iacs/open/lt/GSAA/2022/Boundingbox"
"@type": Geometry
asWKT: "POLYGON((20.573667940943242 56.68266001903969,28.17620700344324 56.68266001903969,28.17620700344324 53.673145876688416,20.573667940943242 53.673145876688416,20.573667940943242 56.68266001903969))|<GeometryVirt>"
asGeoJSON: "<{\"type\": \"Polygon\", \"coordinates\": [[[20.573667940943242, 56.68266001903969], [20.573667940943242, 53.673145876688416], [28.17620700344324, 53.673145876688416], [28.17620700344324, 56.68266001903969], [20.573667940943242, 56.68266001903969]]]}>|<geoJSONLiteral>"
isPartOf:
uri: "http://w3id.org/iacs/open/lt/GSAA"
"@type": ["Ontology", "Dataset"]
description: "A Dataset containing Linked Data representations of Geospatial aid application as part of the Aid applications subsystem of IACS from Lithuania|<string>"
identifier: "GSAA|<token>"
title: "GSAA Dataset from Lithuania|<string>"
spatial:
uri: "http://w3id.org/iacs/open/lt/GSAA/Boundingbox"
"@type": Location
bbox: "POLYGON((20.573667940943242 56.68266001903969,28.17620700344324 56.68266001903969,28.17620700344324 53.673145876688416,20.573667940943242 53.673145876688416,20.573667940943242 56.68266001903969))|<wktLiteral>"
geometry: "<{\"type\": \"Polygon\", \"coordinates\": [[[20.573667940943242, 56.68266001903969], [20.573667940943242, 53.673145876688416], [28.17620700344324, 53.673145876688416], [28.17620700344324, 56.68266001903969], [20.573667940943242, 56.68266001903969]]]}>|<geoJSONLiteral>"
member: "http://w3id.org/iacs/open/lt/GSAA/2022"
member: "http://w3id.org/iacs/open/lt/GSAA/2022/Parcel/{`OBJECTID`}"
identifierScheme: "http://w3id.org/iacs/open/lt/GSAA"
validFrom: "2022-01-01|<date>"
generatedAtTime: "2023-05-03|<date>"
shortId: "`BLK_NR`|<string>"
\ No newline at end of file
--- # Example config for general mapping
cfg:
TEMPLATE_ID: "RPL/2022/Parcel/{`BLOKAS_ID`}"
CONTEXT: ["https://w3id.org/demeter/agri-context.jsonld", description: "http://schema.org/description", M: "http://qudt.org/vocab/unit/M", testing_val: "http://somevalue.for.testing/testing_val", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"]
MAIN TYPE:
"@type": ["Feature", "QuantityValue"]
referenceArea:
uri: ~
"@type": ["QuantityValue", "QuantityValue1"]
numericValue: "`SHAPE_Area`|<double>"
unit: "M2"
observedPerimeter:
uri: ~
"@type": ["QuantityValue", "Feature"]
type: "somethingelse"
numericValue: "`SHAPE_Leng`|<double>"
unit: "M"
specificLandUse: "http://w3id.org/iacs/open/lt/lpis/code/LandUseClassificationValue/{`GKODAS`}"
label: "Lithuanian LPIS parcel of cadastral reference #{`BLOKAS_ID`} - RPL year 2022|<string>"
iacsId: "`BLOKAS_ID`|<string>"
identifier: "`BLOKAS_ID`|<token>"
isPartOf:
uri: "http://w3id.org/iacs/open/lt/LPIS/RPL/2022"
"@type": "FeatureCollection"
description: "Collection of Lithuania RPL LPIS data 2022|<string>"
identifier: "RPL 2022|<token>"
title: "Lithuania LPIS Feature Collection of RPL 2022|<string>"
isPartOf: "http://w3id.org/iacs/open/lt/LPIS"
member: "http://w3id.org/iacs/open/lt/LPIS/RPL/2022/Parcel/{`BLOKAS_ID`}"
identifierScheme: "http://w3id.org/iacs/open/lt/LPIS"
type: "testing_val"
validFrom: "2022-01-01|<date>"
generatedAtTime: "2023-05-03|<date>"
start: "2022-01-01|<date>"
\ No newline at end of file
--- # Example config for general mapping
cfg:
TEMPLATE_ID: "RPL/2022/Parcel/{`seq`}"
CONTEXT: ["https://w3id.org/demeter/agri-context.jsonld", description: "http://schema.org/description", M: "http://qudt.org/vocab/unit/M", testing_val: "http://somevalue.for.testing/testing_val", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"]
MAIN TYPE:
"@type": ["Feature", "QuantityValue"]
referenceArea:
uri: ~
"@type": ["QuantityValue", "QuantityValue1"]
numericValue: "`lang`|<double>"
unit: "`code`|<description>"
--- # Example config for general mapping
cfg:
TEMPLATE_ID: "RPL/2022/Parcel/{`seq`}"
CONTEXT: ["https://w3id.org/demeter/agri-context.jsonld", description: "http://schema.org/description", M: "http://qudt.org/vocab/unit/M", testing_val: "http://somevalue.for.testing/testing_val", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"]
MAIN TYPE:
"@type": ["Feature", "QuantityValue"]
referenceArea:
uri: ~
# "@type": ["QuantityValue", "QuantityValue1"]
"@type":
- QuantityValue
- QuantityValue1
numericValue: "`lang`|<double>"
unit: "`code`|<description>"
additionalLevel:
uri: "http://www.example.org/additionalLevel/{`seq`}"
"@type": ["Feature2", "Feature"]
additionalAttr: "`field`|<string>"
thirdLevel:
uri: ~
"@type": ["Feature3", "Feature"]
thirdAttr: "`field3`|<string>"
anotherAttr: "`otherfield`|<string>"
anotherMainAttr:
uri: "http://www.example.org/anotherMainAttr/{`seq`}"
"@type": ["QuantityValue", "QuantityValue1"]
numericValue: "`lang2`|<double>"
unit: "`code2`|<description>"
--- # Example config for general mapping
cfg:
TEMPLATE_ID: "RPL/2022/Parcel/{`seq`}"
CONTEXT: ["https://w3id.org/demeter/agri-context.jsonld", description: "http://schema.org/description", M: "http://qudt.org/vocab/unit/M", testing_val: "http://somevalue.for.testing/testing_val", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"]
MAIN TYPE:
"@type": "QuantityValue"
referenceArea:
uri: ~
"@type": "QuantityValue3"
secondLevelEnumProperty:
"@1":
uri: ~
"@type": "QuantityValue1"
numericValue: "`lang`|<double>"
deepestAttr:
uri: ~
"@type": "QuantityValue4"
property: "`prop`|<string>"
"@2":
uri: "http://referenceArea.uri2.com"
"@type": "QuantityValue2"
numericValue: "`lat`|<double>"
anotherMainAttr:
uri: "http://www.example.org/anotherMainAttr/{`seq`}"
"@type":
- QuantityValue
- QuantityValue1
numericValue: "`lang2`|<double>"
unit: "`code2`|<description>"
secondLevel:
uri: ~
"@type": "QuantityValue4a"
property: "`prop`|<string>"
thirdLevelEnumProperty:
"@1":
uri: ~
"@type": "QuantityValue2x"
numericValue: "`lat`|<double>"
"@2":
uri: "http://referenceArea.uri2y.com"
"@type": "QuantityValue2y"
numericValue: "`lat`|<double>"
firstLevelEnumProperty:
"@1":
uri: ~
"@type": QuantityValue1a
numericValue: "`lang`|<double>"
deep:
uri: ~
"@type": QuantityValue4a
property: "`prop`|<string>"
"@2":
uri: http://referenceArea.uri3.com
"@type": QuantityValue2a
numericValue: "`lat`|<double>"
label:
"@1": "label_value1|<string>"
"@2": "label_value2|<string>"
--- # Example config for general mapping
cfg:
TEMPLATE_ID: "RPL/2022/Parcel/{`seq`}"
CONTEXT: ["https://w3id.org/demeter/agri-context.jsonld", description: "http://schema.org/description", M: "http://qudt.org/vocab/unit/M", testing_val: "http://somevalue.for.testing/testing_val", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"]
MAIN TYPE:
"@type": ["Feature", "QuantityValue"]
referenceArea:
"@1":
# uri: "http://referenceArea.uri1.com"
uri: ~
"@type": "QuantityValue1"
numericValue: "`lang`|<double>"
"@2":
uri: "http://referenceArea.uri2.com"
"@type": "QuantityValue2"
numericValue: "`lat`|<double>"
anotherMainAttr:
uri: "http://www.example.org/anotherMainAttr/{`seq`}"
"@type": ["QuantityValue", "QuantityValue1"]
numericValue: "`lang2`|<double>"
unit: "`code2`|<description>"
--- # Example config for general mapping
cfg:
TEMPLATE_ID: "RPL/2022/Parcel/{`seq`}"
CONTEXT: ["https://w3id.org/demeter/agri-context.jsonld", description: "http://schema.org/description", M: "http://qudt.org/vocab/unit/M", testing_val: "http://somevalue.for.testing/testing_val", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"]
MAIN TYPE:
"@type": ["Feature", "QuantityValue"]
referenceArea:
uri: ~
"@type": "QuantityValue3"
enumProperty:
"@1":
uri: ~
"@type": "QuantityValue1"
numericValue: "`lang`|<double>"
deepestAttr:
uri: ~
"@type": "QuantityValue3"
property: "`prop`|<string>"
"@2":
uri: "http://referenceArea.uri2.com"
"@type": "QuantityValue2"
numericValue: "`lat`|<double>"
anotherMainAttr:
uri: "http://www.example.org/anotherMainAttr/{`seq`}"
"@type": ["QuantityValue", "QuantityValue1"]
numericValue: "`lang2`|<double>"
unit: "`code2`|<description>"
--- # Example config for general mapping
cfg:
TEMPLATE_ID: "RPL/2022/Parcel/{`seq`}"
CONTEXT: ["https://w3id.org/demeter/agri-context.jsonld", description: "http://schema.org/description", M: "http://qudt.org/vocab/unit/M", testing_val: "http://somevalue.for.testing/testing_val", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"]
MAIN TYPE:
"@type": ["Feature", "QuantityValue"]
referenceArea:
uri: ~
"@type": "QuantityValue1"
numericValue: "`lang`|<double>"
anotherMainAttr:
uri: "http://www.example.org/anotherMainAttr/{`seq`}"
"@type": ["QuantityValue", "QuantityValue1"]
numericValue: "`lang2`|<double>"
unit: "`code2`|<description>"
--- # Configuration for general mapping solution.
cfg:
TEMPLATE_ID: ~
CONTEXT: ~
MAIN TYPE:
"@type": ~
\ No newline at end of file
--- # Mapping configuration for Lithuania
cfg: {BASE_URI: 'http://w3id.org/iacs/open/lt/LPIS/',
LABEL: 'Lithuanian LPIS parcel of cadastral reference #{`NUMERIS`}',
IACS_ID: '`NUMERIS`',
VALID_FROM: '{`DATA`}',
SPECIFIC_LAND_USE: 'http://w3id.org/iacs/open/lt/lpis/code/LandUseClassificationValue/{`GEO_KODAS`}',
TEMPLATE_ID: '{`gid`}',
LAYER_ABBREVIATION: 'RPL'}
\ No newline at end of file
--- # Mapping configuration for other countries
cfg: {BASE_URI: '',
LABEL: '',
IACS_ID: '',
TEMPLATE_ID: '',}
\ No newline at end of file
--- # Mapping configuration for Poland
cfg: {BASE_URI: 'http://w3id.org/iacs/open/pl/LPIS/',
LABEL: 'Polish LPIS parcel of cadastral reference #{`IDENTYFIKA`}',
IACS_ID: '{`IDENTYFIKA`}',
VALID_FROM: '{`DATA_OD`}',
SHORT_ID: '`NUMER`',
MUNICIPALITY_ID: '`TERYT`',
AREA: '`POWIERZCHN`',
TEMPLATE_ID: '{`OBJECTID`}',}
\ No newline at end of file
--- # Mapping configuration for Spain
cfg: {BASE_URI: 'http://w3id.org/iacs/open/es/LPIS/',
LABEL: 'Spanish LPIS parcel of cadastral reference #{`provincia`}-{`municipio`}-{`agregado`}-{`poligono`}-{`parcela`}-{`recinto`}',
IACS_ID: '{`provincia`}-{`municipio`}-{`agregado`}-{`poligono`}-{`parcela`}-{`recinto`}',
VALID_FROM: '2020-06-01',
SHORT_ID: '`dn_oid`',
SPECIFIC_LAND_USE: 'http://w3id.org/iacs/open/es/lpis/code/LandUseClassificationValue/{`uso_sigpac`}',
PARENT_ADM2: 'province/{`provincia`}',
PARENT_ADM3: 'municipality/{`provincia`}_{`municipio`}',
MUNICIPALITY_ID: '{`provincia`}_{`municipio`}',
AREA: '`dn_surface`',
PERIMETER: '`dn_perim`',
TEMPLATE_ID: '{`dn_oid`}',}
\ No newline at end of file
--- # Main configuration
vto_cfg: {SSH_PASSPHRASE: ~,
VIRTUOSO_PORT: ~,
VIRTUOSO_USER: ~,
VIRTUOSO_PASSWORD: ~,
DUMP_EXTENSION: '.nt',
DATA_FOLDER: 'data_hslayers',
DATA_PREFIX: ~,
SERVER_USER: ~,
SERVER_HOST: ~,}
lpis_countries: {OTHER: 'other.yaml',
SPAIN: 'spain.yaml',
POLAND: 'poland.yaml',
LITHUANIA: 'lithuania.yaml',}
sql_cfg : {
DB_TYPE: 'postgresql',
DB_USERNAME: '',
DB_PASSWORD: '',
DB_HOST: '',
DB_PORT: '',
DB_NAME: '',
}
export VSO_PRIVATE_KEY = ""
export VSO_PUBLIC_KEY = ""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment