Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate nquads using rr:graphMap property #5

Open
gone-phishing opened this issue May 27, 2016 · 3 comments
Open

Unable to generate nquads using rr:graphMap property #5

gone-phishing opened this issue May 27, 2016 · 3 comments

Comments

@gone-phishing
Copy link

Even after specifying the flag "-f nquads" and adding rr:graphMap property to both the subject and predicateObject maps, I'm not able to reproduce N-Quads using RML-Processor.

The only example relevant to this is example7 for Airports.csv file. I was unable to reproduce the same output file as shown in this repository. Also to my surprise, the piece of code for testing example7 (asserts that actual output is same as desired output) is commented out.

Is this a known issue? Are there any workarounds? Why is rr:graphMap property being ignored by the processor?

@gone-phishing
Copy link
Author

My custom use case is for converting a Json file to N-Quads. And here's my mapping file:

@prefix rr:     <http://www.w3.org/ns/r2rml#>.
@prefix rml:    <http://semweb.mmlab.be/ns/rml#> .
@prefix ql:     <http://semweb.mmlab.be/ns/ql#> .
@prefix schema: <http://schema.org/>.
@prefix grid: <http://grid.com/#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix ex: <http://www.example.com/#> .

<#InstituteMapping>
    rml:logicalSource [
        rml:source "examples/grid20.json";
        rml:referenceFormulation ql:JSONPath;
        rml:iterator "$.institutes.[*]" 
    ];

    rr:subjectMap [
        rr:template "http://sdw.org/{id}";
        rr:class schema:Education;
        rr:graphMap [ rr:constant ex:Graph ];
    ];

    rr:predicateObjectMap [
        rr:predicate grid:website;
        rr:objectMap [
            rml:reference "links"
        ];
        rr:graphMap [ rr:constant ex:Graph ];
    ].

@gone-phishing
Copy link
Author

Any update on this?

@andimou
Copy link
Collaborator

andimou commented Aug 17, 2016

This d45f873 should have fixed it. Let me know if not!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants