Skip to content

Feature request: property/WKT mapping #132

@coret

Description

@coret

I use Omeka S for the Gouda Timemachine, wher we collect a lot of geo temporal data, which is published as linked data.

This last requirement makes that I cannot directly use the Mapping module (but want to!) as the output is something like:

"o-module-mapping:feature": [
    {
      "@context": "https://www.goudatijdmachine.nl/omeka/api-context",
      "@id": "https://www.goudatijdmachine.nl/omeka/api/mapping_features/3",
      "@type": "o-module-mapping:Feature",
      "o:id": 3,
      "o:item": {
        "@id": "https://www.goudatijdmachine.nl/omeka/api/items/97510",
        "o:id": 97510
      },
      "o-module-mapping:geography-type": "LineString",
      "o-module-mapping:geography-coordinates": [
        [
          4.711403,
          52.009769
        ],
        [
          4.712948,
          52.010595
        ]
      ]
    }
  ]

I'd like to be able to define in the Mapping module settings a property to which the o-module-mapping:Feature and o-module-mapping:geography-coordinates could be mapped. Additionally, I'd like the coordinates converted to WKT, as this is representation of coordinate reference systems is used often in linked data.

The end result (in JSON-LD) for the example above, would be something like:

geo:hasGeometry: [
   {
   geo:asWKT: [
     {
       type: "geometry",
       property_id: 1162,
       property_label: "Geometry",
       is_public: true,
      @value: "LINESTRING (4.711403 52.009769, 4.712948 52.010595 )",
      @type: "http://www.opengis.net/ont/geosparql#wktLiteral"
   }
   ]
 }
]

Where the geo prefix is http://www.opengis.net/ont/geosparql#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions