Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
acdc
repository-extension-services
Commits
b7ea6af0
Commit
b7ea6af0
authored
Apr 13, 2017
by
acoburn
Browse files
Minor code fix (tests still don't work)
parent
fd89d16d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
acrepo-services-entailment/src/main/java/edu/amherst/acdc/services/entailment/EntailmentServiceImpl.java
...herst/acdc/services/entailment/EntailmentServiceImpl.java
+4
-3
No files found.
acrepo-services-entailment/src/main/java/edu/amherst/acdc/services/entailment/EntailmentServiceImpl.java
View file @
b7ea6af0
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment