Git Product home page Git Product logo

burp's Introduction

BURP: A Basic and Unassuming RML Processor

DOI

BURP (Basic and Unassuming RML Processor) is a reference implementation for the new RML specification which has been written from scratch to have no influence from prior implementations of RML. BURP was created to serve as a reference RML implementation for the Knowledge Graph Construction community and to verify the RML specifications their feasibility and coverage of their test cases.

Coverage matrix

RML-Core RML-IO RML-CC RML-FNML RML-Star
โœ”๏ธ 100% coverage ๐Ÿšง Source yes, Target WIP โœ”๏ธ 100% coverage โœ”๏ธ 100% coverage ๐Ÿšง WIP

Building BURP

To build the project and copy its dependencies, execute

$ mvn package 
$ mvn dependency:copy-dependencies

You can add -DskipTests after mvn package to skip the unit tests. The tests do rely on Docker for testing mappings on top of MySQL and PostgreSQL.

Using BURP

The run the R2RML processor, execute the following command:

$ java -jar burp.jar [-h] [-b=<baseIRI>] -m=<mappingFile> [-o=<outputFile>]

A fat jar is also provided with the Apache Maven Shade Plugin. It does not depend on the dependency folder.

Usage: burp [-h] [-b=<baseIRI>] -m=<mappingFile> [-o=<outputFile>]
  -b, --baseIRI=<baseIRI>   Used in resolving relative IRIs produced by the RML mapping
  -h, --help                Display a help message
  -m, --mappingFile=<mappingFile>
                            The RML mapping file
  -o, --outputFile=<outputFile>
                            The output file

If no outputFile is provided and the RML mapping does not rely on RML-IO for targets, then the output is written to the standard output.

Citation

If you use BURP, please cite our paper:

@inproceedings{DBLP:conf/kgcw/AsscheD24,
  author       = {Dylan {Van Assche} and Christophe Debruyne},
  editor       = {David Chaves{-}Fraga and Anastasia Dimou and
                  Ana Iglesias{-}Molina and Umutcan Serles and
                  Dylan {Van Assche}},
  title        = {BURPing Through {RML} Test Cases},
  booktitle    = {Proceedings of the 5th International Workshop on Knowledge Graph Construction
                  co-located with 21th Extended Semantic Web Conference ({ESWC} 2024),
                  Hersonissos, Greece, May 27, 2024},
  series       = {{CEUR} Workshop Proceedings},
  volume       = {3718},
  publisher    = {CEUR-WS.org},
  year         = {2024},
  url          = {https://ceur-ws.org/Vol-3718/paper4.pdf}
}

License

BURP is released under the MIT license.

burp's People

Contributors

chrdebru avatar idomingu avatar dylanvanassche avatar

Stargazers

David Chaves avatar  avatar

Watchers

Ben De Meester avatar Anastasia Dimou avatar  avatar  avatar David Chaves avatar

burp's Issues

Test RMLSTC0007c failing

Hi,

While trying out some of the test cases in BURP I noticed RMLSTC0007c test case fails with the following error:

java.lang.RuntimeException: javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
        at burp.ls.XMLSource.iterator(XMLSource.java:48)
        at burp.Main.generate(Main.java:84)
        at burp.Main.doMain(Main.java:56)
        at burp.Main.main(Main.java:43)
Caused by: javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
        at java.xml/com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(Unknown Source)
        at burp.ls.XMLSource.iterator(XMLSource.java:39)
        ... 3 more
Caused by: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.error(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.RelativeLocationPath(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.LocationPath(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.PathExpr(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.UnionExpr(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.UnaryExpr(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.MultiplicativeExpr(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.AdditiveExpr(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.RelationalExpr(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.EqualityExpr(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.AndExpr(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.OrExpr(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.Expr(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.initXPath(Unknown Source)
        at java.xml/com.sun.org.apache.xpath.internal.XPath.<init>(Unknown Source)
        ... 5 more
javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
System exiting with code: 1

Test was executed only with the --mappingFile argument.

Is this the expected behavior?

Many thanks!

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.