History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-378
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Arjohn Kampman
Reporter: Arjohn Kampman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sesame

namespace collision in TurtleWriter

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


 Description   
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.

 All   Comments   Change History      Sort Order:
There are no comments yet on this issue.