Commit 73cb8992 authored by acoburn's avatar acoburn
Browse files

Merge branch 'entailment-fix' into 'master'

Returns full model, including entailed triples.

See merge request !96
parents a73f7621 00cd214d
......@@ -91,7 +91,7 @@ public class EntailmentServiceImpl implements EntailmentService {
// add the requested ontologies to the model, which does RDFS entailment over them.
final Model entailed = fullModel.difference(rdfsModel).difference(model);
final Model entailed = fullModel.difference(rdfsModel);
final Resource subjectResource = entailed.getResource(subject);
......@@ -91,17 +91,6 @@ public class EntailmentServiceTest {
assertFalse(str.contains("dcterms:rights") && str.contains("dcterms:title"));
public void testNoEntailedTriples() throws IOException {
final InputStream bs = svc.getEntailedTriples(subject,
getClass().getResourceAsStream("/noentailment.ttl"), TURTLE, TURTLE);
final StringWriter sw = new StringWriter();
IOUtils.copy(bs, sw, UTF_8);
final String str = sw.toString();
LOGGER.debug("string is : '{}'", str);
public void testObjectWithNamespace() throws IOException {
final InputStream bs = svc.getEntailedTriples(subject,
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