Thanks Andy I'm able to get the fuseki script to run from the old fuseki 1 however no datasets. I try to run the server I get #-> ./fuseki-server start
How do I get the datasets? ./fuseki-server Service name given but no configuration argument to match [root@awsacrnva1028:/app/fuseki]# Where do I add the argiments? Thanks You Andy for helping me -----Original Message----- From: Andy Seaborne [mailto:[email protected]] Sent: Wednesday, September 16, 2015 4:11 AM To: [email protected] Subject: Re: Twinkle SPARQL tool > Exception in thread "main" java.lang.UnsupportedClassVersionError: Fuseki 2.3.0 requires java8 > ./fuseki start > ./fuseki: line 238: log_daemon_message: command not found > ./fuseki: line > 347: log_begin_msg: command not found > ./fuseki: line 399: log_end_msg: > command not found > ./fuseki: line 405: log_daemon_msg: command not found > > ./fuseki: line 406: log_daemon_msg: command not found Those line numbers don't line up with the "fuseki" script. About 5 lines seem to be missing. If you look at the top of the script you'll see that the script tests for /lib/lsb/init-functions and sources it, otherwise it defines it's own versions with just enough to run. ---- if [ -f /lib/lsb/init-functions ]; then . /lib/lsb/init-functions else ---- If you want to start Fuseki at the command line, the "fuseki-server" script is simpler. Andy On 16/09/15 01:57, Legault, Phillip [ITSUS] wrote: > I used the old fuseki start and checked the log file > > Exception in thread "main" java.lang.UnsupportedClassVersionError: > org/apache/jena/fuseki/cmd/FusekiCmd : Unsupported major.minor version 52.0 > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:800) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) > at java.net.URLClassLoader.access$100(URLClassLoader.java:71) > at java.net.URLClassLoader$1.run(URLClassLoader.java:361) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > at > sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482) > > > > I have java version > java version "1.7.0_85" > OpenJDK Runtime Environment (rhel-2.6.1.3.el6_7-x86_64 u85-b01) > OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode) > > > -----Original Message----- > From: Legault, Phillip [ITSUS] > Sent: Tuesday, September 15, 2015 8:18 PM > To: [email protected] > Subject: RE: Twinkle SPARQL tool > > Trying setup fuseki 2 Ui > The same as I setup Fuseki 1 > I setup the args as described > FUSEKI_ARGS="--update --port=8080 --loc=$FUSKEI_DATA_DIR /ds" > And the old way I was using > > FUSEKI_ARGS="--update --port=8080 --loc=DB /db" > > I get the error > ./fuseki start > ./fuseki: line 238: log_daemon_message: command not found > ./fuseki: line 347: log_begin_msg: command not found > ./fuseki: line 399: log_end_msg: command not found > ./fuseki: line 405: log_daemon_msg: command not found > ./fuseki: line 406: log_daemon_msg: command not found > > > > > -----Original Message----- > From: Andy Seaborne [mailto:[email protected]] > Sent: Tuesday, September 15, 2015 7:08 PM > To: [email protected] > Subject: Re: Twinkle SPARQL tool > > "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 >> >> >> >
