zazuko / xrm

A friendly language for mappings to RDF
MIT License
1 stars 0 forks source link

Use shapes as a blueprint for mapping #7

Open mchlrch opened 5 years ago

mchlrch commented 5 years ago

If one or many shapes could be declared for a map, then proposals for RdfClass/RdfProperty/Datatype inside the map could be based on the content of those shapes. E.g. proposals would only contain properties that are defined in one of the shapes.

map AirportMapping from airport {
    fit AirportShape

    subject template "http://airport.example.com/{0}" with id;

    types
        transit:Stop

    properties
        transit:route from stop with datatype xsd:int;
        ...
}