Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Willms
hfc
Commits
b7542fc2
Commit
b7542fc2
authored
May 13, 2016
by
Hans-Ulrich Krieger (HUK)
Browse files
minor changes in ForwardChainer and LGetLatestValues
parent
dbd6d5fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/dfki/lt/hfc/ForwardChainer.java
View file @
b7542fc2
...
...
@@ -1642,7 +1642,7 @@ public final class ForwardChainer {
// call THIS with equivalence class reduction ENABLED
//Namespace.shortIsDefault = false;
//Namespace.shortIsDefault = false;
ForwardChainer
fc
=
new
ForwardChainer
(
100000
,
500000
,
"/Users/krieger/Desktop/Java/HFC/hfc/src/resources/default.eqred.nt"
,
...
...
@@ -1650,7 +1650,10 @@ public final class ForwardChainer {
"/Users/krieger/Desktop/Java/HFC/hfc/src/resources/default.ns"
);
fc
.
uploadTuples
(
"/Users/krieger/Desktop/Java/HFC/hfc/src/resources/ltworld.jena.nt"
);
fc
.
computeClosure
();
fc
.
computeClosure
();
Query
q
=
new
Query
(
fc
.
tupleStore
);
// different binder vars in aggregates
BindingTable
bt
=
q
.
query
(
"SELECT DISTINCT ?p WHERE ?s ?p ?o FILTER ?p != <rdf:type> AGGREGATE ?number = Count ?p & ?subject = Identity ?p"
);
System
.
out
.
println
(
bt
);
fc
.
shutdown
();
/*
...
...
src/main/java/de/dfki/lt/hfc/aggregates/LGetLatestValues.java
View file @
b7542fc2
...
...
@@ -33,10 +33,10 @@ import de.dfki.lt.hfc.types.XsdLong;
* <pal:labval33> <dom:bsl> "165.6"^^<xsd:mg_dL> "5577"^^<xsd:long> .
*
* example query from the PAL domain:
* SELECT ?child ?pro
b
?val ?t
* SELECT ?child ?pro
p
?val ?t
* WHERE ?child <rdf:type> <dom:Child> ?ts1 &
* ?child <dom:hasLabValue> ?labvalue ?ts2 &
* ?labvalue ?pro
b
?val ?
* ?labvalue ?pro
p
?val ?
t
* AGGREGATE ?measurement ?result ?patient ?time = LGetLatestValues ?prop ?val ?child ?t ?t
*
* what we would then like to see is
...
...
Write
Preview
Supports
Markdown
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