Skip to content

How to construct graph object #52

Answered by dachafra
Spothedog1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Spothedog1
At this moment, RML does not allow BN without reference to the data. To solve this issue you will need to create a new TriplesMap and make a join between both

@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix over: <http://overturemaps.org#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .
@prefix ex: <http://example.org/#> .

<feature> a rml:TriplesMap;

    rml:logicalSource [
        a rml:LogicalSource;
        rr:sqlVersion rr:SQL2008;
    ];

    rml:subjectMap [
        rml:template "http://example.org/#{id}" ;
        rml:class geo:Feature;
    ];

    rml:predicateObjectMap [
        rml:predicate sko…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Spothedog1
Comment options

@dachafra
Comment options

Answer selected by dachafra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants