
|
If you were logged in you would be able to see more operations.
|
|
Sesame
Created: 03/Apr/07 02:15 PM
Updated: 20/Mar/08 08:56 PM
|
|
| Component/s: |
None
|
| Affects Version/s: |
None
|
| Fix Version/s: |
2.0-beta3
|
|
|
Environment:
|
Sesame 2.0 beta 2
|
|
The following code
private void findAllPropertiesFor(String[] ids) throws
MalformedQueryException, RepositoryException,
TupleQueryResultHandlerException, QueryEvaluationException,
RDFHandlerException {
String propsForQ = "CONSTRUCT { ?sub ?rel ?obj . } WHERE { ?
sub ?rel ?obj .}";
TurtleWriter tw = new TurtleWriter(System.out);
for (String id : ids) {
String q = propsForQ.replaceAll("\\?sub", "<" + id + ">");
GraphQuery query = lc.prepareGraphQuery
(QueryLanguage.SPARQL, q);
// query.addBinding("sub",f.createURI(id));
query.evaluate(tw);
System.out.println("===");
}
}
results im the following turtle
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix : <http://rdfs.org/sioc/ns#> .
@prefix : <http://xmlns.com/foaf/0.1/> .
<http://netbeans.org/people/67610> :email <mailto:
jesse.glick@sun.com> ;
:accountName "jglick1" ;
a :User .
There are two : prefixes. foaf:accountName and sioc:User get munged.
|
|
|
There are no comments yet on this issue.
|
| |
|
|