Giter Site home page Giter Site logo

sansa-stack / sansa-inference Goto Github PK

View Code? Open in Web Editor NEW
28.0 9.0 7.0 1.59 MB

A general Inference API based on two of the most popular Big Data processing engines: Apache Spark and Apache Flink

License: Apache License 2.0

Scala 99.37% Shell 0.57% Java 0.06%
reasoning semantic-web owl rdfs spark flink distributed-computing

sansa-inference's Issues

Running RDFS forward chaining generates triples with literals on subject position

I ran the RDFS forward chaining (on GO) through the example set up in SANSA-Examples/sansa-examples-spark and got triples looking like this

<"Reactome:REACT_90070"^^<http://www.w3.org/2001/XMLSchema#string>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Resource> .

in the output.
I think a literal check is needed here: https://github.com/SANSA-Stack/SANSA-Inference/blob/develop/sansa-inference-spark/src/main/scala/net/sansa_stack/inference/spark/forwardchaining/ForwardRuleReasonerRDFS.scala#L186

Conformance tests not executable on command line

When calling mvn clean test e.g. in sansa-inference-spark/ I get

net.sansa_stack.inference.spark.conformance.RDFSConformanceTest *** ABORTED ***
  java.lang.RuntimeException: Unable to load a Suite class that was discovered in the runpath: net.sansa_stack.inference.spark.conformance.RDFSConformanceTest
  at org.scalatest.tools.DiscoverySuite$.getSuiteInstance(DiscoverySuite.scala:81)
  at org.scalatest.tools.DiscoverySuite$$anonfun$1.apply(DiscoverySuite.scala:38)
  at org.scalatest.tools.DiscoverySuite$$anonfun$1.apply(DiscoverySuite.scala:37)
  at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
  at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
  at scala.collection.Iterator$class.foreach(Iterator.scala:893)
  at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
  at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
  at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
  at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
  ...
  Cause: java.lang.NullPointerException:
  at scala.collection.mutable.ArrayOps$ofRef$.newBuilder$extension(ArrayOps.scala:190)
  at scala.collection.mutable.ArrayOps$ofRef.newBuilder(ArrayOps.scala:186)
  at scala.collection.TraversableLike$class.filterImpl(TraversableLike.scala:246)
  at scala.collection.TraversableLike$class.filter(TraversableLike.scala:259)
  at scala.collection.mutable.ArrayOps$ofRef.filter(ArrayOps.scala:186)
  at net.sansa_stack.test.conformance.TestCases$.loadTestCases(TestCases.scala:29)
  at net.sansa_stack.test.conformance.ConformanceTestBase.<init>(ConformanceTestBase.scala:38)
  at net.sansa_stack.test.conformance.RDFSConformanceTestBase.<init>(RDFSConformanceTestBase.scala:17)
  at net.sansa_stack.inference.spark.conformance.RDFSConformanceTest.<init>(RDFSConformanceTest.scala:21)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

for RDFSConformanceTest and OWLHorstConformanceTest. Seems, the problem is, that in net.sansa_stack.test.conformance.TestCases (part of sansa-inference-tests) the directory: File variable passed in, holds e.g. the path file:/home/me/.m2/repository/net/sansa-stack/sansa-inference-tests_2.11/0.3.0-SNAPSHOT/sansa-inference-tests_2.11-0.3.0-SNAPSHOT-tests.jar!/data/conformance/owl2rl and directory.listFiles() returns null.

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.