Giter VIP home page Giter VIP logo

Comments (6)

aljoshakoecher avatar aljoshakoecher commented on September 3, 2024 2

Forget it, another simple mistake. It has to be rr:class instead of rr:Class 🤦‍♂

from rmlmapper-java.

pheyvaer avatar pheyvaer commented on September 3, 2024 2

Hi @aljoshakoecher

Based on your feedback we added a tutorial to our website https://rml.io/docs/rml/tutorials/xml/ 😃

from rmlmapper-java.

pheyvaer avatar pheyvaer commented on September 3, 2024 1

Hi @aljoshakoecher

Thanks for you issue. No RDF is generated because there is no eventName tag in the Exhibition. I added it below

<?xml version = "1.0"?>
<Events>
 <Exhibition id="398">
 <eventName>Test</eventName>
 <Venue>STAM</Venue>
  <Location>
   <lat>51.076891</lat>
   <long>3.717222</long>
  </Location>
 </Exhibition>
 <Exhibition id="428">
 <eventName>Test 2</eventName>
 <Venue>ABC</Venue>
  <Location>
   <lat>55.076891</lat>
   <long>35.717222</long>
  </Location>
 </Exhibition>
</Events>

and then your RML rules work. Could you have a try on your side too?

from rmlmapper-java.

aljoshakoecher avatar aljoshakoecher commented on September 3, 2024

Thanks for your blazingly fast response. Sorry that was a stupid mistake on my side. Of course it couldn't work with missing <eventName>. Now it works.
What I tried before was an even simpler mapping definition:

@prefix rr: <http://www.w3.org/ns/r2rml#>.
@prefix rml: <http://semweb.mmlab.be/ns/rml#>.
@prefix crml:   <http://semweb.mmlab.be/ns/crml#>.
@prefix ql: <http://semweb.mmlab.be/ns/ql#>.
@prefix ex: <http://ex.com/>.
@base <http://example.com/base>.

<#EventMapping>
 a rr:TriplesMap;
  rml:logicalSource [
    rml:source "./Beispiele/input.xml";
    rml:referenceFormulation ql:XPath;
    rml:iterator "/Events/Exhibition" ];

  rr:subjectMap [
    rr:template "http://ex.com/{@id}";
    rr:Class ex:SomeClass
  ].

I expected this rule to create just the individuals with an rdf:type of ex:SomeClass. Unfortunately, nothing gets created. Could you give me a hint why that is the case?

from rmlmapper-java.

aljoshakoecher avatar aljoshakoecher commented on September 3, 2024

Hey @pheyvaer,

thanks a lot. I think that's very valuable to get a quick start! Without this tutorial, it was a bit tricky to get a working example and I had to go through a lot of trial and error to create a first mapping.

from rmlmapper-java.

pheyvaer avatar pheyvaer commented on September 3, 2024

You're welcome. If there is anything else just let us know! 😃

from rmlmapper-java.

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.