Revision 50902
Added by Alessia Bardi over 6 years ago
modules/dnet-parthenos-publisher/trunk/src/main/java/eu/dnetlib/parthenos/virtuoso/VirtuosoReadAPI.java | ||
---|---|---|
94 | 94 |
//log.debug(describeQuery); |
95 | 95 |
//Can't use DESCRIBE query: server decides what to return (i.e. not all triples) and cannot find out if and how Virtuoso can be configured |
96 | 96 |
|
97 |
String q = "DEFINE input:inference <parthenos_rules> CONSTRUCT {<%s> ?p ?o . } WHERE { <%s> ?p ?o .}"; |
|
97 |
//String q = "DEFINE input:inference <parthenos_rules> CONSTRUCT {<%s> ?p ?o . } WHERE { <%s> ?p ?o .}"; |
|
98 |
String q = "CONSTRUCT {<%s> ?p ?o . } WHERE { <%s> ?p ?o .}"; |
|
98 | 99 |
String query = String.format(q, subjectURL, subjectURL, subjectURL, subjectURL); |
99 | 100 |
log.debug(query); |
100 | 101 |
final QueryEngineHTTP serviceRequest = |
Also available in: Unified diff
Test: 406 error if I use the inference rules?