"Twinkle" is 2007 and extremely old. It is not part of Jena; it uses
(an old copy of) pre-Apache Jena.
Jena-2.5.4 / ARQ-2.1 maybe.
> Lexical error at line 22, column 25. Encountered: " " (32), after :
"BIND"
BIND is SPARQL 1.1 - way after 2007.
> com.hp.hpl.jena.shared.JenaException: rethrew:
org.xml.sax.SAXParseException; systemId:
http://awsacrnva1036.jnj.com:8080/db/sparql; lineNumber: 1;
columnNumber: 50; White spaces are required between publicId and systemId.
Sorry - no idea what's happening here other than it's broken when
treated as XML. At a wild guess, it's not XML at all and some error
page (HTML?).
try
wget -O- 'http://example.com:8080/db/sparql?query=SELECT * WHERE {}'
and see what comes back.
Can you use the Fuseki2 UI?
Andy
On 15/09/15 21:55, Legault, Phillip [ITSUS] wrote:
I need to us a client to query my Fuseki endpoint http://example.com
:8080/db/sparql
I have a standard query I run from the endpoint, and I get the results I'm
looking for.
I need this automated remotely so I wanted to run it from the twinkle app
Using Write a simple query
I'm presented with base URI, and Data URI
Forgive me for not being knowledgeable about all this.
I'm thinking the Base URI is my endpoint http://example.com :8080/db/sparql?
Is the Data URI my resolver or vis versa?
Wi> com.hp.hpl.jena.shared.JenaException: rethrew:
org.xml.sax.SAXParseException; systemId:
http://awsacrnva1036.jnj.com:8080/db/sparql; lineNumber: 1; columnNumber: 50;
White spaces are required between publicId and systemId.
th this
PREFIX
property:<http://example.com/index.php/Special:URIResolver/Property-3A>
PREFIX swivt:<http://semantic-mediawiki.org/swivt/1.0#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?name ?technology_name ?investment_status ?start_date
?end_date ?program_name ?program_contact ?program_owner ?domain_name ?region
?sort_order
WHERE
{
?s property:Has_Name ?name .
?s property:Has_subobject-23aux ?subobject .
?subobject property:Investment_Description ?technology_name .
?subobject property:Investment_Status ?investment_status .
?subobject property:Has_Start_Date ?start_date .
?subobject property:Has_Region ?region .
?subobject property:Program_Name ?program_name .
?subobject property:Program_Contact ?program_contact .
?subobject property:Portfolio_Domain ?domain_name .
?subobject property:Program_Owner ?program_owner .
OPTIONAL {
?subobject property:Has_End_Date ?end_date .
}
OPTIONAL {
?subobject property:Sort_Order ?o .
BIND (xsd:decimal(?o) as ?sort_order)
}
}
I get - Lexical error at line 22, column 25. Encountered: " " (32), after :
"BIND"
Ok so I remove the Bind and I get
com.hp.hpl.jena.shared.JenaException: rethrew: org.xml.sax.SAXParseException;
systemId: http://awsacrnva1036.jnj.com:8080/db/sparql; lineNumber: 1;
columnNumber: 50; White spaces are required between publicId and systemId.
Any help would be appreciated.
Thank you!
Phil