lifewatch / user-analysis-2023

0 stars 1 forks source link

Dereferencer #11

Closed cedricdcc closed 8 months ago

cedricdcc commented 9 months ago

Module dereferencer added that will perform tasks given a config file.

Set config file looks like this:

SPARQL: >
  PREFIX dc: <http://purl.org/dc/terms/> 
  SELECT ?o
  FROM <urn:lwua:INGEST:/data/mr_regions_ldes_test.ttl>
  WHERE {
    ?s dc:isVersionOf ?o .
      FILTER regex(str(?o), "marineregions.org")
  }
property_paths:
  - http://marineregions.org/ns/ontology#hasGeometry
  - http://marineregions.org/ns/ontology#isPartOf:
    - http://marineregions.org/ns/ontology#hasGeometry
    - https://schema.org/geo:
      - https://schema.org/latitude
      - https://schema.org/longitude