Commit b7ea6af0 authored by acoburn's avatar acoburn
Browse files

Minor code fix (tests still don't work)

parent fd89d16d
......@@ -88,10 +88,11 @@ public class EntailmentServiceImpl implements EntailmentService {
final Model entailed = createDefaultModel();
entailed.setNsPrefixes(model);
fullModel.listStatements().filterDrop(t -> rdfsModel.contains(t.getSubject(), null))
fullModel.listStatements()
// We don't care about rdfs:Class and rdfs:Resource types
.filterDrop(t -> t.matches(null, RDF.type.asNode(), RDFS.Class.asNode()) ||
t.matches(null, RDF.type.asNode(), RDFS.Resource.asNode()))
.filterDrop(t -> t.asTriple().matches(null, RDF.type.asNode(), RDFS.Class.asNode()) ||
t.asTriple().matches(null, RDF.type.asNode(), RDFS.Resource.asNode()))
.filterDrop(t -> rdfsModel.contains(t.getSubject(), null))
.forEachRemaining(entailed::add);
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment