Giter Club home page Giter Club logo

Comments (5)

arenas-guerrero-julian avatar arenas-guerrero-julian commented on September 23, 2024

The description of the issue is empty.

from morph-kgc.

strawberrylunar avatar strawberrylunar commented on September 23, 2024

The description of the issue is empty.

Hello, I have added details to my question. I look forward to you being able to solve my problem! Thanks a lot!

from morph-kgc.

arenas-guerrero-julian avatar arenas-guerrero-julian commented on September 23, 2024

Please, revise your mappings.

You are mixing R2RML and RML (e.g. rr:objectMap and rml:onjectMap), you have a # before an rml:reference.

from morph-kgc.

strawberrylunar avatar strawberrylunar commented on September 23, 2024

Thanks a lot! The reason there's a line with "rml:reference" is because I tried replacing the code

rml:template "http://www.example.com/book/{book_index}";
            rr:termType rr:IRI

with

rml:reference "{book}" ]

and then it ran normally. But I want to treat "book" as an entity.

Thanks a lottttttttt! I will revise it by myself!

from morph-kgc.

arenas-guerrero-julian avatar arenas-guerrero-julian commented on September 23, 2024

As I said, please, take a careful look at your mappings. This mappings works:

@prefix rml: <http://w3id.org/rml/>.
@prefix ex: <http://example.com#>.
@prefix : <http://example.org/> .
@base <http://example.org/> .

:innerTriplesMap a rml:NonAssertedTriplesMap ;
    rml:logicalSource [
        rml:source "data.csv";
        rml:referenceFormulation rml:CSV
    ];
    rml:subjectMap [
        rml:template "http://www.example.com/resource#/{h_type}/{h_ID}";
        rml:termType rml:IRI
    ];
    rml:predicateObjectMap [
        rml:predicate ex:hadWarWith;
        rml:objectMap [
            rml:template "http://www.example.com/resource#/{t_type}/{t_ID}";
            rml:termType rml:IRI
        ]
    ].

:outerTriplesMap a rml:AssertedTriplesMap;
    rml:logicalSource [
        rml:source "data.csv";
        rml:referenceFormulation rml:CSV
    ];
    rml:subjectMap [
        rml:quotedTriplesMap :innerTriplesMap
    ];
    rml:predicateObjectMap [
        rml:predicate ex:wasExtractedFrom;
        rml:objectMap [
            rml:template "http://www.example.com/book/{book_index}";
            rml:termType rml:IRI
        ];
    ].

from morph-kgc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.