Re: Unsupported major

2016-10-19 Thread Andy Seaborne



On 19/10/16 16:39, Sandor Kopacsi wrote:

Thank you, Dick.


How can avoid this problem next time? Fuseki takes into consideration
the
JAVA_HOME system variable? If yes, how and where should I set it? In a
starting script of Fuseki

You can install multiple JRE's and "point" your application at the
required
one.

On windows via the command set JAVA_HOME=c:\jre8


And how can I set it in Linux? Is it enough like that?

export JAVA_HOME= /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java

I have read an issue (JENA-1035), that fuseki-server script ignores
JAVA_HOME variable while it executes the "java" command.
Has it been fixed?


At the top of the issue:

Resolution: Fixed
Fix Version/s: Fuseki 2.3.1





Thanks,
Sandor

Am 19.10.2016 um 17:08 schrieb Dick Murray:

On 19 October 2016 at 15:10, Sandor Kopacsi 
wrote:


Dear Dick,

You are right. I have Java version 1.6.0_37 and the exception says:

"minor version 52.0"

Am I right, that Fuseki 1.3 requires Java 8 (that I used previously)?


You'll probably want to upgrade to the latest version...



I am afraid that the administrators / or the system itself downgraded
the
Java version to Java 6, which is the pre set or automatic version.

Now I switched to Java 8, and now it works.

How can avoid this problem next time? Fuseki takes into consideration
the
JAVA_HOME system variable? If yes, how and where should I set it? In a
starting script of Fuseki


You can install multiple JRE's and "point" your application at the
required
one.

On windows via the command set JAVA_HOME=c:\jre8



Thanks and best regards,
Sandor


Am 19.10.2016 um 15:36 schrieb Dick Murray:


Hi.

Check what version of JRE you have with java -version

dick@Dick-M3800:~$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Your exception should say what version it is having trouble with...

Java SE 9 = 53,
Java SE 8 = 52,
Java SE 7 = 51,
Java SE 6.0 = 50,
Java SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45


On 19 October 2016 at 14:32, Sandor Kopacsi

wrote:

Dear List Members,

I wanted to start Fuseki 1.3.0 for test purposes, but I got an
exception
in thread "main" java.lang.UnsupportedClassVersionError:
org/apache/jena/fuseki/FusekiCmd : Unsupported major.

I do not want to update Fuseki by all means, I just wanted to try
something in this test environment.
It worked so far well, and I did not changed (deliberately) anything.

What can be the reason for that, and what should I do?

Thank you in advance and best regards,
Sandor

--
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center







Re: Unsupported major

2016-10-19 Thread Dick Murray
On 19 October 2016 at 16:39, Sandor Kopacsi 
wrote:

> Thank you, Dick.
>
> How can avoid this problem next time? Fuseki takes into consideration the
>>> JAVA_HOME system variable? If yes, how and where should I set it? In a
>>> starting script of Fuseki
>>>
>> You can install multiple JRE's and "point" your application at the
>> required
>> one.
>>
>> On windows via the command set JAVA_HOME=c:\jre8
>>
>> And how can I set it in Linux? Is it enough like that?
>

Depends on how you are running Fuseki? You have set, env, declare and
export.

dick@Dick-M3800:~$ name=a
dick@Dick-M3800:~$ echo ${name}
a
dick@Dick-M3800:~$ declare name=b
dick@Dick-M3800:~$ echo ${name}
b
dick@Dick-M3800:~$ export name=c
dick@Dick-M3800:~$ echo ${name}
c

With export the variable is available in sub shells.


>
> export JAVA_HOME= /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
>
> I have read an issue (JENA-1035), that fuseki-server script ignores
> JAVA_HOME variable while it executes the "java" command.
> Has it been fixed?
>

Unknown, as i don't use Fuseki (we rolled our own similar).


>
> Thanks,
> Sandor
>
>
> Am 19.10.2016 um 17:08 schrieb Dick Murray:
>
>> On 19 October 2016 at 15:10, Sandor Kopacsi 
>> wrote:
>>
>> Dear Dick,
>>>
>>> You are right. I have Java version 1.6.0_37 and the exception says:
>>>
>>> "minor version 52.0"
>>>
>>> Am I right, that Fuseki 1.3 requires Java 8 (that I used previously)?
>>>
>>> You'll probably want to upgrade to the latest version...
>>
>>
>> I am afraid that the administrators / or the system itself downgraded the
>>> Java version to Java 6, which is the pre set or automatic version.
>>>
>>> Now I switched to Java 8, and now it works.
>>>
>>> How can avoid this problem next time? Fuseki takes into consideration the
>>> JAVA_HOME system variable? If yes, how and where should I set it? In a
>>> starting script of Fuseki
>>>
>>> You can install multiple JRE's and "point" your application at the
>> required
>> one.
>>
>> On windows via the command set JAVA_HOME=c:\jre8
>>
>>
>> Thanks and best regards,
>>> Sandor
>>>
>>>
>>> Am 19.10.2016 um 15:36 schrieb Dick Murray:
>>>
>>> Hi.

 Check what version of JRE you have with java -version

 dick@Dick-M3800:~$ java -version
 java version "1.8.0_101"
 Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
 Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

 Your exception should say what version it is having trouble with...

 Java SE 9 = 53,
 Java SE 8 = 52,
 Java SE 7 = 51,
 Java SE 6.0 = 50,
 Java SE 5.0 = 49,
 JDK 1.4 = 48,
 JDK 1.3 = 47,
 JDK 1.2 = 46,
 JDK 1.1 = 45


 On 19 October 2016 at 14:32, Sandor Kopacsi <
 sandor.kopa...@univie.ac.at>
 wrote:

 Dear List Members,

> I wanted to start Fuseki 1.3.0 for test purposes, but I got an
> exception
> in thread "main" java.lang.UnsupportedClassVersionError:
> org/apache/jena/fuseki/FusekiCmd : Unsupported major.
>
> I do not want to update Fuseki by all means, I just wanted to try
> something in this test environment.
> It worked so far well, and I did not changed (deliberately) anything.
>
> What can be the reason for that, and what should I do?
>
> Thank you in advance and best regards,
> Sandor
>
> --
> Dr. Sandor Kopacsi
> IT Software Designer
>
> Vienna University Computer Center
>
>
>
>
> --
> Dr. Sandor Kopacsi
> IT Software Designer
>
> Vienna University Computer Center
> Universitätsstraße 7 (NIG)
> A-1010 Vienna
>
> Phone:  +43-1-4277-14176
> Mobile: +43-664-60277-14176
>
>


ApacheCon is now less than a month away!

2016-10-19 Thread Rich Bowen
Dear Apache Enthusiast,

ApacheCon Sevilla is now less than a month out, and we need your help
getting the word out. Please tell your colleagues, your friends, and
members of related technical communities, about this event. Rates go up
November 3rd, so register today!

ApacheCon, and Apache Big Data, are the official gatherings of the
Apache Software Foundation, and one of the best places in the world to
meet other members of your project community, gain deeper knowledge
about your favorite Apache projects, learn about the ASF. Your project
doesn't live in a vacuum - it's part of a larger family of projects that
have a shared set of values, as well as a shared governance model. And
many of our project have an overlap in developers, in communities, and
in subject matter, making ApacheCon a great place for cross-pollination
of ideas and of communities.

Some highlights of these events will be:

* Many of our board members and project chairs will be present
* The lightning talks are a great place to hear, and give, short
presentations about what you and other members of the community are
working on
* The key signing gets you linked into the web of trust, and better
able to verify our software releases
* Evening receptions and parties where you can meet community
members in a less formal setting
* The State of the Feather, where you can learn what the ASF has
done in the last year, and what's coming next year
* BarCampApache, an informal unconference-style event, is another
venue for discussing your projects at the ASF

We have a great schedule lined up, covering the wide range of ASF
projects, including:

* CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos -
Carlos Sanchez
* Inner sourcing 101 - Jim Jagielski
* Java Memory Leaks in Modular Environments - Mark Thomas

ApacheCon/Apache Big Data will be held in Sevilla, Spain, at the Melia
Sevilla, November 14th through 18th. You can find out more at
http://apachecon.com/  Other ways to stay up to date with ApacheCon are:

* Follow us on Twitter at @apachecon
* Join us on IRC, at #apachecon on the Freenode IRC network
* Join the apachecon-discuss mailing list by sending email to
apachecon-discuss-subscr...@apache.org
* Or contact me directly at rbo...@apache.org with questions,
comments, or to volunteer to help

See you in Sevilla!

-- 
Rich Bowen: VP, Conferences
rbo...@apache.org
http://apachecon.com/
@apachecon


Re: Unsupported major

2016-10-19 Thread Dick Murray
On 19 October 2016 at 15:10, Sandor Kopacsi 
wrote:

> Dear Dick,
>
> You are right. I have Java version 1.6.0_37 and the exception says:
>
> "minor version 52.0"
>
> Am I right, that Fuseki 1.3 requires Java 8 (that I used previously)?
>

You'll probably want to upgrade to the latest version...


>
> I am afraid that the administrators / or the system itself downgraded the
> Java version to Java 6, which is the pre set or automatic version.
>
> Now I switched to Java 8, and now it works.
>
> How can avoid this problem next time? Fuseki takes into consideration the
> JAVA_HOME system variable? If yes, how and where should I set it? In a
> starting script of Fuseki
>

You can install multiple JRE's and "point" your application at the required
one.

On windows via the command set JAVA_HOME=c:\jre8


> Thanks and best regards,
> Sandor
>
>
> Am 19.10.2016 um 15:36 schrieb Dick Murray:
>
>> Hi.
>>
>> Check what version of JRE you have with java -version
>>
>> dick@Dick-M3800:~$ java -version
>> java version "1.8.0_101"
>> Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
>> Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
>>
>> Your exception should say what version it is having trouble with...
>>
>> Java SE 9 = 53,
>> Java SE 8 = 52,
>> Java SE 7 = 51,
>> Java SE 6.0 = 50,
>> Java SE 5.0 = 49,
>> JDK 1.4 = 48,
>> JDK 1.3 = 47,
>> JDK 1.2 = 46,
>> JDK 1.1 = 45
>>
>>
>> On 19 October 2016 at 14:32, Sandor Kopacsi 
>> wrote:
>>
>> Dear List Members,
>>>
>>> I wanted to start Fuseki 1.3.0 for test purposes, but I got an exception
>>> in thread "main" java.lang.UnsupportedClassVersionError:
>>> org/apache/jena/fuseki/FusekiCmd : Unsupported major.
>>>
>>> I do not want to update Fuseki by all means, I just wanted to try
>>> something in this test environment.
>>> It worked so far well, and I did not changed (deliberately) anything.
>>>
>>> What can be the reason for that, and what should I do?
>>>
>>> Thank you in advance and best regards,
>>> Sandor
>>>
>>> --
>>> Dr. Sandor Kopacsi
>>> IT Software Designer
>>>
>>> Vienna University Computer Center
>>>
>>>
>>>
>


RE: Fuseki 2.4.0 web user interface

2016-10-19 Thread Mahmood Ahmad
There was no output at all through the general query.

Now I am working with an OWL file and get all the concepts (It has only one 
concept). The query I am running is:

prefix owl: 
prefix rdfs: 

SELECT DISTINCT ?class ?label ?description
WHERE {
  ?class a owl:Class.
  OPTIONAL { ?class rdfs:label ?label}
  OPTIONAL { ?class rdfs:comment ?description}
}
LIMIT 25

The OWL file is uploaded successfully but there is no result of the query.

Any thoughts, I'll appreciate.

Regards

-Original Message-
From: Andy Seaborne [mailto:a...@apache.org] 
Sent: 19 October 2016 15:55
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface



On 19/10/16 15:44, Mahmood Ahmad wrote:
> Ah, your query works!
>
> I had just missed a '}' character in the end.
>
> Thanks Andy, but why did my query not work. It was:
>
> SELECT ?subject ?predicate ?object
> WHERE {
>   ?subject ?predicate ?object
> }
> LIMIT 25

Please note that I can't see your screen so I can't see what the output to the 
general query was.

But I guess it has the G column set.  Named graph not default graph.


>
> Regards
>
> -Original Message-
> From: Andy Seaborne [mailto:a...@apache.org]
> Sent: 19 October 2016 15:25
> To: users@jena.apache.org
> Subject: Re: Fuseki 2.4.0 web user interface
>
> The list does not pass attachments through.
>
> How are you runnign the server exactly?
>
>
> Ask this query:
>
> SELECT * { { ?s ?p ?o } UNION { GRAPH ?g {?s ?p ?o } } }
>
> and don't forget to press the "query"  button (it caches results otherwise).
>
>  Andy
>
>
>
> On 19/10/16 14:23, Mahmood Ahmad wrote:
>> Andy,
>>
>> I used a simple ulo.ttl file (owl file converted to ttl format) to 
>> upload on dataset /ds (Fuseki 2.4.0) and ran a simple query to get 
>> all triples. The file uploaded correctly but generated no result in 
>> query results portion of the Fuseki v2.4.0 web UI, although there are 
>> 11 triples in ulo.ttl
>>
>> The ttl file is attached. There was no result from the execution of query, 
>> nor a message of success/failure.
>>
>> Please can you suggest something so that I could get some output from the 
>> query?
>>
>> Regards
>> Mahmood
>>
>>
>>
>> -Original Message-
>> From: Andy Seaborne [mailto:a...@apache.org]
>> Sent: 19 October 2016 13:57
>> To: users@jena.apache.org
>> Subject: Re: Fuseki 2.4.0 web user interface
>>
>> Note what it says at the top of the page:
>>
>> """
>> This page covers Fuseki v1. As of Jena 2.13.0, there is also a new 
>> version, Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and 
>> Fuseki
>> v2 are currently active and maintained.
>> """
>>
>> You are looking at Fuseki1 documentation.
>>
>>  Andy
>>
>> On 19/10/16 13:54, Andy Seaborne wrote:
>>> It is looking for a file called tdb.ttl which is not found.
>>>
>>> --desc is for a assembler file - you have to provide that, the 
>>> documentation is out of date.
>>>
>>> If all you eant is some small data for experimentation:
>>>
>>> fuseki-server --file  /ds
>>>
>>> will work
>>>
>>> If you have a TDB database,
>>>
>>> fuseki-server --loc  /ds
>>>
>>> Andy
>>>
>>> On 19/10/16 12:39, Mahmood Ahmad wrote:
 Hi,

 [I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]

 Can anyone please point me to the tdb.ttl for running a few 
 practice SPARQL queries? The Apache Jena says that TDB is a part of 
 Apache Jena
 3.1.0 on the following page:

 http://jena.apache.org/documentation/tdb/index.html

 I have installed Fuseki 2.4.0 and I am looking to run the Fuseki 
 Server with tdb.ttl using the command:
 fuseki-server --desc tdb.ttl /ds

 as given on the page:
 https://jena.apache.org/documentation/serving_data/

 The error I get is as follows:

 C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.
 4.0>fuseki-server
 --desc tdb.ttl /ds
 [2016-10-19 12:14:49] Server INFO  Dataset from assembler
 org.apache.jena.sparql.ARQException: Failed reading assembler
 description: Not found: tdb.ttl
 at
 org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerF
 i
 l
 e(AssemblerUtils.java:91)

 at
 org.apache.jena.sparql.core.assembler.AssemblerUtils.build(Assemble
 r
 U
 tils.java:104)

 at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
 at
 arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.j
 a
 v
 a:43)

 at
 org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesA
 n
 d
 Args(FusekiCmd.java:284)

 at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
 at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
 at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
 at jena.cmd.CmdMain.mainRun(CmdMain.java:45)

Re: Unsupported major

2016-10-19 Thread Sandor Kopacsi

Thanks, ok, but do they require Java 8?


Am 19.10.2016 um 16:19 schrieb Andy Seaborne:



On 19/10/16 15:10, Sandor Kopacsi wrote:

Dear Dick,

You are right. I have Java version 1.6.0_37 and the exception says:

"minor version 52.0"

Am I right, that Fuseki 1.3 requires Java 8 (that I used previously)?


The latest version is 1.4 ... and there is Fuseki 2 ... 2.4.0


the Java version to Java 6, which is the pre set or automatic version.

Now I switched to Java 8, and now it works.

How can avoid this problem next time? Fuseki takes into consideration
the JAVA_HOME system variable? If yes, how and where should I set it? In
a starting script of Fuseki?

Thanks and best regards,
Sandor

Am 19.10.2016 um 15:36 schrieb Dick Murray:

Hi.

Check what version of JRE you have with java -version

dick@Dick-M3800:~$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Your exception should say what version it is having trouble with...

Java SE 9 = 53,
Java SE 8 = 52,
Java SE 7 = 51,
Java SE 6.0 = 50,
Java SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45


On 19 October 2016 at 14:32, Sandor Kopacsi 


wrote:


Dear List Members,

I wanted to start Fuseki 1.3.0 for test purposes, but I got an 
exception

in thread "main" java.lang.UnsupportedClassVersionError:
org/apache/jena/fuseki/FusekiCmd : Unsupported major.

I do not want to update Fuseki by all means, I just wanted to try
something in this test environment.
It worked so far well, and I did not changed (deliberately) anything.

What can be the reason for that, and what should I do?

Thank you in advance and best regards,
Sandor

--
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center






--
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center
Universitätsstraße 7 (NIG)
A-1010 Vienna

Phone:  +43-1-4277-14176
Mobile: +43-664-60277-14176



Re: Unsupported major

2016-10-19 Thread Andy Seaborne



On 19/10/16 15:51, Sandor Kopacsi wrote:

Thanks, ok, but do they require Java 8?


Yes.

https://jena.apache.org/download/

"Jena requires Java8 (from Jena version 3.0.0 onwards)."

Andy




Am 19.10.2016 um 16:19 schrieb Andy Seaborne:



On 19/10/16 15:10, Sandor Kopacsi wrote:

Dear Dick,

You are right. I have Java version 1.6.0_37 and the exception says:

"minor version 52.0"

Am I right, that Fuseki 1.3 requires Java 8 (that I used previously)?


The latest version is 1.4 ... and there is Fuseki 2 ... 2.4.0


the Java version to Java 6, which is the pre set or automatic version.

Now I switched to Java 8, and now it works.

How can avoid this problem next time? Fuseki takes into consideration
the JAVA_HOME system variable? If yes, how and where should I set it? In
a starting script of Fuseki?

Thanks and best regards,
Sandor

Am 19.10.2016 um 15:36 schrieb Dick Murray:

Hi.

Check what version of JRE you have with java -version

dick@Dick-M3800:~$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Your exception should say what version it is having trouble with...

Java SE 9 = 53,
Java SE 8 = 52,
Java SE 7 = 51,
Java SE 6.0 = 50,
Java SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45


On 19 October 2016 at 14:32, Sandor Kopacsi

wrote:


Dear List Members,

I wanted to start Fuseki 1.3.0 for test purposes, but I got an
exception
in thread "main" java.lang.UnsupportedClassVersionError:
org/apache/jena/fuseki/FusekiCmd : Unsupported major.

I do not want to update Fuseki by all means, I just wanted to try
something in this test environment.
It worked so far well, and I did not changed (deliberately) anything.

What can be the reason for that, and what should I do?

Thank you in advance and best regards,
Sandor

--
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center








Re: Fuseki 2.4.0 web user interface

2016-10-19 Thread Andy Seaborne



On 19/10/16 15:44, Mahmood Ahmad wrote:

Ah, your query works!

I had just missed a '}' character in the end.

Thanks Andy, but why did my query not work. It was:

SELECT ?subject ?predicate ?object
WHERE {
?subject ?predicate ?object
}
LIMIT 25


Please note that I can't see your screen so I can't see what the output 
to the general query was.


But I guess it has the G column set.  Named graph not default graph.




Regards

-Original Message-
From: Andy Seaborne [mailto:a...@apache.org]
Sent: 19 October 2016 15:25
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface

The list does not pass attachments through.

How are you runnign the server exactly?


Ask this query:

SELECT * { { ?s ?p ?o } UNION { GRAPH ?g {?s ?p ?o } } }

and don't forget to press the "query"  button (it caches results otherwise).

 Andy



On 19/10/16 14:23, Mahmood Ahmad wrote:

Andy,

I used a simple ulo.ttl file (owl file converted to ttl format) to
upload on dataset /ds (Fuseki 2.4.0) and ran a simple query to get all
triples. The file uploaded correctly but generated no result in query
results portion of the Fuseki v2.4.0 web UI, although there are 11
triples in ulo.ttl

The ttl file is attached. There was no result from the execution of query, nor 
a message of success/failure.

Please can you suggest something so that I could get some output from the query?

Regards
Mahmood



-Original Message-
From: Andy Seaborne [mailto:a...@apache.org]
Sent: 19 October 2016 13:57
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface

Note what it says at the top of the page:

"""
This page covers Fuseki v1. As of Jena 2.13.0, there is also a new
version, Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and
Fuseki
v2 are currently active and maintained.
"""

You are looking at Fuseki1 documentation.

 Andy

On 19/10/16 13:54, Andy Seaborne wrote:

It is looking for a file called tdb.ttl which is not found.

--desc is for a assembler file - you have to provide that, the
documentation is out of date.

If all you eant is some small data for experimentation:

fuseki-server --file  /ds

will work

If you have a TDB database,

fuseki-server --loc  /ds

Andy

On 19/10/16 12:39, Mahmood Ahmad wrote:

Hi,

[I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]

Can anyone please point me to the tdb.ttl for running a few practice
SPARQL queries? The Apache Jena says that TDB is a part of Apache
Jena
3.1.0 on the following page:

http://jena.apache.org/documentation/tdb/index.html

I have installed Fuseki 2.4.0 and I am looking to run the Fuseki
Server with tdb.ttl using the command:
fuseki-server --desc tdb.ttl /ds

as given on the page:
https://jena.apache.org/documentation/serving_data/

The error I get is as follows:

C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.
4.0>fuseki-server
--desc tdb.ttl /ds
[2016-10-19 12:14:49] Server INFO  Dataset from assembler
org.apache.jena.sparql.ARQException: Failed reading assembler
description: Not found: tdb.ttl
at
org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFi
l
e(AssemblerUtils.java:91)

at
org.apache.jena.sparql.core.assembler.AssemblerUtils.build(Assembler
U
tils.java:104)

at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
at
arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.ja
v
a:43)

at
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAn
d
Args(FusekiCmd.java:284)

at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(Fuseki
C
md.java:102)

at
org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)

Any ideas, I'll appreciate.

Regards
Mahmood

Mahmood Ahmad, PhD
(Semantic Information Architect)



RE: Fuseki 2.4.0 web user interface

2016-10-19 Thread Mahmood Ahmad
Ah, your query works!

I had just missed a '}' character in the end.

Thanks Andy, but why did my query not work. It was:

SELECT ?subject ?predicate ?object
WHERE {
?subject ?predicate ?object
}
LIMIT 25

Regards

-Original Message-
From: Andy Seaborne [mailto:a...@apache.org] 
Sent: 19 October 2016 15:25
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface

The list does not pass attachments through.

How are you runnign the server exactly?


Ask this query:

SELECT * { { ?s ?p ?o } UNION { GRAPH ?g {?s ?p ?o } } }

and don't forget to press the "query"  button (it caches results otherwise).

 Andy



On 19/10/16 14:23, Mahmood Ahmad wrote:
> Andy,
>
> I used a simple ulo.ttl file (owl file converted to ttl format) to 
> upload on dataset /ds (Fuseki 2.4.0) and ran a simple query to get all 
> triples. The file uploaded correctly but generated no result in query 
> results portion of the Fuseki v2.4.0 web UI, although there are 11 
> triples in ulo.ttl
>
> The ttl file is attached. There was no result from the execution of query, 
> nor a message of success/failure.
>
> Please can you suggest something so that I could get some output from the 
> query?
>
> Regards
> Mahmood
>
>
>
> -Original Message-
> From: Andy Seaborne [mailto:a...@apache.org]
> Sent: 19 October 2016 13:57
> To: users@jena.apache.org
> Subject: Re: Fuseki 2.4.0 web user interface
>
> Note what it says at the top of the page:
>
> """
> This page covers Fuseki v1. As of Jena 2.13.0, there is also a new 
> version, Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and 
> Fuseki
> v2 are currently active and maintained.
> """
>
> You are looking at Fuseki1 documentation.
>
>  Andy
>
> On 19/10/16 13:54, Andy Seaborne wrote:
>> It is looking for a file called tdb.ttl which is not found.
>>
>> --desc is for a assembler file - you have to provide that, the 
>> documentation is out of date.
>>
>> If all you eant is some small data for experimentation:
>>
>> fuseki-server --file  /ds
>>
>> will work
>>
>> If you have a TDB database,
>>
>> fuseki-server --loc  /ds
>>
>> Andy
>>
>> On 19/10/16 12:39, Mahmood Ahmad wrote:
>>> Hi,
>>>
>>> [I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]
>>>
>>> Can anyone please point me to the tdb.ttl for running a few practice 
>>> SPARQL queries? The Apache Jena says that TDB is a part of Apache 
>>> Jena
>>> 3.1.0 on the following page:
>>>
>>> http://jena.apache.org/documentation/tdb/index.html
>>>
>>> I have installed Fuseki 2.4.0 and I am looking to run the Fuseki 
>>> Server with tdb.ttl using the command:
>>> fuseki-server --desc tdb.ttl /ds
>>>
>>> as given on the page:
>>> https://jena.apache.org/documentation/serving_data/
>>>
>>> The error I get is as follows:
>>>
>>> C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.
>>> 4.0>fuseki-server
>>> --desc tdb.ttl /ds
>>> [2016-10-19 12:14:49] Server INFO  Dataset from assembler
>>> org.apache.jena.sparql.ARQException: Failed reading assembler
>>> description: Not found: tdb.ttl
>>> at
>>> org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFi
>>> l
>>> e(AssemblerUtils.java:91)
>>>
>>> at
>>> org.apache.jena.sparql.core.assembler.AssemblerUtils.build(Assembler
>>> U
>>> tils.java:104)
>>>
>>> at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
>>> at
>>> arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.ja
>>> v
>>> a:43)
>>>
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAn
>>> d
>>> Args(FusekiCmd.java:284)
>>>
>>> at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
>>> at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
>>> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
>>> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(Fuseki
>>> C
>>> md.java:102)
>>>
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)
>>>
>>> Any ideas, I'll appreciate.
>>>
>>> Regards
>>> Mahmood
>>>
>>> Mahmood Ahmad, PhD
>>> (Semantic Information Architect)
>>>


Re: RDF Turtle Blank Nodes

2016-10-19 Thread Andy Seaborne

Does it parse? :-)

http://www.sparql.org/data-validator.html

Spec:

[6] triples ::=
subject predicateObjectList | blankNodePropertyList predicateObjectList?

It matches

blankNodePropertyList predicateObjectList?

Andy

On 19/10/16 15:24, Erich Bremer wrote:

Is this a valid RDF Turtle (https://www.w3.org/TR/turtle/#BNodes)
document? - Erich

VV
@prefix :   .
[ :status "happy"
] .




RE: Fuseki 2.4.0 web user interface

2016-10-19 Thread Mahmood Ahmad
Andy

Your query line cause this parse error:

Error 400: Parse error: 
prefix owl: 
prefix rdfs: 

SELECT * { { ?s ?p ?o } UNION { GRAPH ?g {?s ?p ?o } } 

Encountered "" at line 4, column 55.

Was expecting one of:

 ...

 ...

 ...

 ...

 ...

 ...

"values" ...

"graph" ...

"optional" ...

"union" ...

"minus" ...

"bind" ...

"service" ...

"let" ...

"exists" ...

"not" ...

"filter" ...

"true" ...

"false" ...

 ...

 ...

 ...

 ...

 ...

 ...

 ...

 ...

 ...

 ...

 ...

 ...

 ...

"(" ...

 ...

"{" ...

"}" ...

"[" ...

 ...

"." ...




Fuseki - version 2.4.0 (Build date: 2016-05-10T11:59:39+)

-Original Message-
From: Andy Seaborne [mailto:a...@apache.org] 
Sent: 19 October 2016 15:25
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface

The list does not pass attachments through.

How are you runnign the server exactly?


Ask this query:

SELECT * { { ?s ?p ?o } UNION { GRAPH ?g {?s ?p ?o } } }

and don't forget to press the "query"  button (it caches results otherwise).

 Andy



On 19/10/16 14:23, Mahmood Ahmad wrote:
> Andy,
>
> I used a simple ulo.ttl file (owl file converted to ttl format) to 
> upload on dataset /ds (Fuseki 2.4.0) and ran a simple query to get all 
> triples. The file uploaded correctly but generated no result in query 
> results portion of the Fuseki v2.4.0 web UI, although there are 11 
> triples in ulo.ttl
>
> The ttl file is attached. There was no result from the execution of query, 
> nor a message of success/failure.
>
> Please can you suggest something so that I could get some output from the 
> query?
>
> Regards
> Mahmood
>
>
>
> -Original Message-
> From: Andy Seaborne [mailto:a...@apache.org]
> Sent: 19 October 2016 13:57
> To: users@jena.apache.org
> Subject: Re: Fuseki 2.4.0 web user interface
>
> Note what it says at the top of the page:
>
> """
> This page covers Fuseki v1. As of Jena 2.13.0, there is also a new 
> version, Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and 
> Fuseki
> v2 are currently active and maintained.
> """
>
> You are looking at Fuseki1 documentation.
>
>  Andy
>
> On 19/10/16 13:54, Andy Seaborne wrote:
>> It is looking for a file called tdb.ttl which is not found.
>>
>> --desc is for a assembler file - you have to provide that, the 
>> documentation is out of date.
>>
>> If all you eant is some small data for experimentation:
>>
>> fuseki-server --file  /ds
>>
>> will work
>>
>> If you have a TDB database,
>>
>> fuseki-server --loc  /ds
>>
>> Andy
>>
>> On 19/10/16 12:39, Mahmood Ahmad wrote:
>>> Hi,
>>>
>>> [I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]
>>>
>>> Can anyone please point me to the tdb.ttl for running a few practice 
>>> SPARQL queries? The Apache Jena says that TDB is a part of Apache 
>>> Jena
>>> 3.1.0 on the following page:
>>>
>>> http://jena.apache.org/documentation/tdb/index.html
>>>
>>> I have installed Fuseki 2.4.0 and I am looking to run the Fuseki 
>>> Server with tdb.ttl using the command:
>>> fuseki-server --desc tdb.ttl /ds
>>>
>>> as given on the page:
>>> https://jena.apache.org/documentation/serving_data/
>>>
>>> The error I get is as follows:
>>>
>>> C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.
>>> 4.0>fuseki-server
>>> --desc tdb.ttl /ds
>>> [2016-10-19 12:14:49] Server INFO  Dataset from assembler
>>> org.apache.jena.sparql.ARQException: Failed reading assembler
>>> description: Not found: tdb.ttl
>>> at
>>> org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFi
>>> l
>>> e(AssemblerUtils.java:91)
>>>
>>> at
>>> org.apache.jena.sparql.core.assembler.AssemblerUtils.build(Assembler
>>> U
>>> tils.java:104)
>>>
>>> at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
>>> at
>>> arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.ja
>>> v
>>> a:43)
>>>
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAn
>>> d
>>> Args(FusekiCmd.java:284)
>>>
>>> at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
>>> at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
>>> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
>>> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(Fuseki
>>> C
>>> md.java:102)
>>>
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)
>>>
>>> Any ideas, I'll appreciate.
>>>
>>> Regards
>>> Mahmood
>>>
>>> Mahmood Ahmad, PhD
>>> (Semantic Information Architect)
>>>


RE: Fuseki 2.4.0 web user interface

2016-10-19 Thread Mahmood Ahmad
>From Windows 10 machine, I used the DOS command prompt

C:\.> fuseki-server --update --mem /ds
 And then opened the browser for the page http://localhost:3030 to start the 
web UI.

By 'query' button, do you mean the big right arrow button on the right?

Regards

-Original Message-
From: Andy Seaborne [mailto:a...@apache.org] 
Sent: 19 October 2016 15:25
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface

The list does not pass attachments through.

How are you runnign the server exactly?


Ask this query:

SELECT * { { ?s ?p ?o } UNION { GRAPH ?g {?s ?p ?o } } }

and don't forget to press the "query"  button (it caches results otherwise).

 Andy



On 19/10/16 14:23, Mahmood Ahmad wrote:
> Andy,
>
> I used a simple ulo.ttl file (owl file converted to ttl format) to 
> upload on dataset /ds (Fuseki 2.4.0) and ran a simple query to get all 
> triples. The file uploaded correctly but generated no result in query 
> results portion of the Fuseki v2.4.0 web UI, although there are 11 
> triples in ulo.ttl
>
> The ttl file is attached. There was no result from the execution of query, 
> nor a message of success/failure.
>
> Please can you suggest something so that I could get some output from the 
> query?
>
> Regards
> Mahmood
>
>
>
> -Original Message-
> From: Andy Seaborne [mailto:a...@apache.org]
> Sent: 19 October 2016 13:57
> To: users@jena.apache.org
> Subject: Re: Fuseki 2.4.0 web user interface
>
> Note what it says at the top of the page:
>
> """
> This page covers Fuseki v1. As of Jena 2.13.0, there is also a new 
> version, Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and 
> Fuseki
> v2 are currently active and maintained.
> """
>
> You are looking at Fuseki1 documentation.
>
>  Andy
>
> On 19/10/16 13:54, Andy Seaborne wrote:
>> It is looking for a file called tdb.ttl which is not found.
>>
>> --desc is for a assembler file - you have to provide that, the 
>> documentation is out of date.
>>
>> If all you eant is some small data for experimentation:
>>
>> fuseki-server --file  /ds
>>
>> will work
>>
>> If you have a TDB database,
>>
>> fuseki-server --loc  /ds
>>
>> Andy
>>
>> On 19/10/16 12:39, Mahmood Ahmad wrote:
>>> Hi,
>>>
>>> [I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]
>>>
>>> Can anyone please point me to the tdb.ttl for running a few practice 
>>> SPARQL queries? The Apache Jena says that TDB is a part of Apache 
>>> Jena
>>> 3.1.0 on the following page:
>>>
>>> http://jena.apache.org/documentation/tdb/index.html
>>>
>>> I have installed Fuseki 2.4.0 and I am looking to run the Fuseki 
>>> Server with tdb.ttl using the command:
>>> fuseki-server --desc tdb.ttl /ds
>>>
>>> as given on the page:
>>> https://jena.apache.org/documentation/serving_data/
>>>
>>> The error I get is as follows:
>>>
>>> C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.
>>> 4.0>fuseki-server
>>> --desc tdb.ttl /ds
>>> [2016-10-19 12:14:49] Server INFO  Dataset from assembler
>>> org.apache.jena.sparql.ARQException: Failed reading assembler
>>> description: Not found: tdb.ttl
>>> at
>>> org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFi
>>> l
>>> e(AssemblerUtils.java:91)
>>>
>>> at
>>> org.apache.jena.sparql.core.assembler.AssemblerUtils.build(Assembler
>>> U
>>> tils.java:104)
>>>
>>> at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
>>> at
>>> arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.ja
>>> v
>>> a:43)
>>>
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAn
>>> d
>>> Args(FusekiCmd.java:284)
>>>
>>> at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
>>> at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
>>> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
>>> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(Fuseki
>>> C
>>> md.java:102)
>>>
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)
>>>
>>> Any ideas, I'll appreciate.
>>>
>>> Regards
>>> Mahmood
>>>
>>> Mahmood Ahmad, PhD
>>> (Semantic Information Architect)
>>>


Re: Fuseki 2.4.0 web user interface

2016-10-19 Thread Andy Seaborne

The list does not pass attachments through.

How are you runnign the server exactly?


Ask this query:

SELECT * { { ?s ?p ?o } UNION { GRAPH ?g {?s ?p ?o } } }

and don't forget to press the "query"  button (it caches results otherwise).

Andy



On 19/10/16 14:23, Mahmood Ahmad wrote:

Andy,

I used a simple ulo.ttl file (owl file converted to ttl format) to upload on 
dataset /ds (Fuseki 2.4.0) and ran a simple query to get all triples. The file 
uploaded correctly but generated no result in query results portion of the 
Fuseki v2.4.0 web UI, although there are 11 triples in ulo.ttl

The ttl file is attached. There was no result from the execution of query, nor 
a message of success/failure.

Please can you suggest something so that I could get some output from the query?

Regards
Mahmood



-Original Message-
From: Andy Seaborne [mailto:a...@apache.org]
Sent: 19 October 2016 13:57
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface

Note what it says at the top of the page:

"""
This page covers Fuseki v1. As of Jena 2.13.0, there is also a new version, 
Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and Fuseki
v2 are currently active and maintained.
"""

You are looking at Fuseki1 documentation.

 Andy

On 19/10/16 13:54, Andy Seaborne wrote:

It is looking for a file called tdb.ttl which is not found.

--desc is for a assembler file - you have to provide that, the
documentation is out of date.

If all you eant is some small data for experimentation:

fuseki-server --file  /ds

will work

If you have a TDB database,

fuseki-server --loc  /ds

Andy

On 19/10/16 12:39, Mahmood Ahmad wrote:

Hi,

[I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]

Can anyone please point me to the tdb.ttl for running a few practice
SPARQL queries? The Apache Jena says that TDB is a part of Apache
Jena
3.1.0 on the following page:

http://jena.apache.org/documentation/tdb/index.html

I have installed Fuseki 2.4.0 and I am looking to run the Fuseki
Server with tdb.ttl using the command:
fuseki-server --desc tdb.ttl /ds

as given on the page:
https://jena.apache.org/documentation/serving_data/

The error I get is as follows:

C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.
4.0>fuseki-server
--desc tdb.ttl /ds
[2016-10-19 12:14:49] Server INFO  Dataset from assembler
org.apache.jena.sparql.ARQException: Failed reading assembler
description: Not found: tdb.ttl
at
org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFil
e(AssemblerUtils.java:91)

at
org.apache.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerU
tils.java:104)

at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
at
arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.jav
a:43)

at
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAnd
Args(FusekiCmd.java:284)

at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiC
md.java:102)

at
org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)

Any ideas, I'll appreciate.

Regards
Mahmood

Mahmood Ahmad, PhD
(Semantic Information Architect)



RE: Fuseki 2.4.0 web user interface

2016-10-19 Thread Mahmood Ahmad
I guess it was a search for RDF data that led to
https://jena.apache.org/documentation/serving_data/

But the more important is my current problem with displaying query results for 
a simple ttl file. (I sent a related question on both Jena and Apache lists).

I am struggling in displaying simple query results.

Regards

-Original Message-
From: Andy Seaborne [mailto:a...@apache.org] 
Sent: 19 October 2016 15:13
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface

Yes - its linked to in that text I quoted,on the page.

http://jena.apache.org/documentation/fuseki2/

and it is the nav fro the front page.

How did you get to the Fuseki1 documentation?

 Andy

On 19/10/16 13:59, Mahmood Ahmad wrote:
> Thank Andy,
>
> I see it now. Is there a documentation page for Fuseki v2 as well?
>
>
> -Original Message-
> From: Andy Seaborne [mailto:a...@apache.org]
> Sent: 19 October 2016 13:57
> To: users@jena.apache.org
> Subject: Re: Fuseki 2.4.0 web user interface
>
> Note what it says at the top of the page:
>
> """
> This page covers Fuseki v1. As of Jena 2.13.0, there is also a new 
> version, Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and 
> Fuseki
> v2 are currently active and maintained.
> """
>
> You are looking at Fuseki1 documentation.
>
>  Andy
>
> On 19/10/16 13:54, Andy Seaborne wrote:
>> It is looking for a file called tdb.ttl which is not found.
>>
>> --desc is for a assembler file - you have to provide that, the 
>> documentation is out of date.
>>
>> If all you eant is some small data for experimentation:
>>
>> fuseki-server --file  /ds
>>
>> will work
>>
>> If you have a TDB database,
>>
>> fuseki-server --loc  /ds
>>
>> Andy
>>
>> On 19/10/16 12:39, Mahmood Ahmad wrote:
>>> Hi,
>>>
>>> [I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]
>>>
>>> Can anyone please point me to the tdb.ttl for running a few practice 
>>> SPARQL queries? The Apache Jena says that TDB is a part of Apache 
>>> Jena
>>> 3.1.0 on the following page:
>>>
>>> http://jena.apache.org/documentation/tdb/index.html
>>>
>>> I have installed Fuseki 2.4.0 and I am looking to run the Fuseki 
>>> Server with tdb.ttl using the command:
>>> fuseki-server --desc tdb.ttl /ds
>>>
>>> as given on the page:
>>> https://jena.apache.org/documentation/serving_data/
>>>
>>> The error I get is as follows:
>>>
>>> C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.
>>> 4.0>fuseki-server
>>> --desc tdb.ttl /ds
>>> [2016-10-19 12:14:49] Server INFO  Dataset from assembler
>>> org.apache.jena.sparql.ARQException: Failed reading assembler
>>> description: Not found: tdb.ttl
>>> at
>>> org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFi
>>> l
>>> e(AssemblerUtils.java:91)
>>>
>>> at
>>> org.apache.jena.sparql.core.assembler.AssemblerUtils.build(Assembler
>>> U
>>> tils.java:104)
>>>
>>> at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
>>> at
>>> arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.ja
>>> v
>>> a:43)
>>>
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAn
>>> d
>>> Args(FusekiCmd.java:284)
>>>
>>> at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
>>> at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
>>> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
>>> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(Fuseki
>>> C
>>> md.java:102)
>>>
>>> at
>>> org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)
>>>
>>> Any ideas, I'll appreciate.
>>>
>>> Regards
>>> Mahmood
>>>
>>> Mahmood Ahmad, PhD
>>> (Semantic Information Architect)
>>>


Re: Unsupported major

2016-10-19 Thread Andy Seaborne



On 19/10/16 15:10, Sandor Kopacsi wrote:

Dear Dick,

You are right. I have Java version 1.6.0_37 and the exception says:

"minor version 52.0"

Am I right, that Fuseki 1.3 requires Java 8 (that I used previously)?


The latest version is 1.4 ... and there is Fuseki 2 ... 2.4.0


the Java version to Java 6, which is the pre set or automatic version.

Now I switched to Java 8, and now it works.

How can avoid this problem next time? Fuseki takes into consideration
the JAVA_HOME system variable? If yes, how and where should I set it? In
a starting script of Fuseki?

Thanks and best regards,
Sandor

Am 19.10.2016 um 15:36 schrieb Dick Murray:

Hi.

Check what version of JRE you have with java -version

dick@Dick-M3800:~$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Your exception should say what version it is having trouble with...

Java SE 9 = 53,
Java SE 8 = 52,
Java SE 7 = 51,
Java SE 6.0 = 50,
Java SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45


On 19 October 2016 at 14:32, Sandor Kopacsi 
wrote:


Dear List Members,

I wanted to start Fuseki 1.3.0 for test purposes, but I got an exception
in thread "main" java.lang.UnsupportedClassVersionError:
org/apache/jena/fuseki/FusekiCmd : Unsupported major.

I do not want to update Fuseki by all means, I just wanted to try
something in this test environment.
It worked so far well, and I did not changed (deliberately) anything.

What can be the reason for that, and what should I do?

Thank you in advance and best regards,
Sandor

--
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center






Re: Fuseki 2.4.0 web user interface

2016-10-19 Thread Andy Seaborne

Yes - its linked to in that text I quoted,on the page.

http://jena.apache.org/documentation/fuseki2/

and it is the nav fro the front page.

How did you get to the Fuseki1 documentation?

Andy

On 19/10/16 13:59, Mahmood Ahmad wrote:

Thank Andy,

I see it now. Is there a documentation page for Fuseki v2 as well?


-Original Message-
From: Andy Seaborne [mailto:a...@apache.org]
Sent: 19 October 2016 13:57
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface

Note what it says at the top of the page:

"""
This page covers Fuseki v1. As of Jena 2.13.0, there is also a new version, 
Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and Fuseki
v2 are currently active and maintained.
"""

You are looking at Fuseki1 documentation.

 Andy

On 19/10/16 13:54, Andy Seaborne wrote:

It is looking for a file called tdb.ttl which is not found.

--desc is for a assembler file - you have to provide that, the
documentation is out of date.

If all you eant is some small data for experimentation:

fuseki-server --file  /ds

will work

If you have a TDB database,

fuseki-server --loc  /ds

Andy

On 19/10/16 12:39, Mahmood Ahmad wrote:

Hi,

[I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]

Can anyone please point me to the tdb.ttl for running a few practice
SPARQL queries? The Apache Jena says that TDB is a part of Apache
Jena
3.1.0 on the following page:

http://jena.apache.org/documentation/tdb/index.html

I have installed Fuseki 2.4.0 and I am looking to run the Fuseki
Server with tdb.ttl using the command:
fuseki-server --desc tdb.ttl /ds

as given on the page:
https://jena.apache.org/documentation/serving_data/

The error I get is as follows:

C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.
4.0>fuseki-server
--desc tdb.ttl /ds
[2016-10-19 12:14:49] Server INFO  Dataset from assembler
org.apache.jena.sparql.ARQException: Failed reading assembler
description: Not found: tdb.ttl
at
org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFil
e(AssemblerUtils.java:91)

at
org.apache.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerU
tils.java:104)

at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
at
arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.jav
a:43)

at
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAnd
Args(FusekiCmd.java:284)

at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiC
md.java:102)

at
org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)

Any ideas, I'll appreciate.

Regards
Mahmood

Mahmood Ahmad, PhD
(Semantic Information Architect)



Re: Unsupported major

2016-10-19 Thread Sandor Kopacsi

Dear Dick,

You are right. I have Java version 1.6.0_37 and the exception says:

"minor version 52.0"

Am I right, that Fuseki 1.3 requires Java 8 (that I used previously)?

I am afraid that the administrators / or the system itself downgraded 
the Java version to Java 6, which is the pre set or automatic version.


Now I switched to Java 8, and now it works.

How can avoid this problem next time? Fuseki takes into consideration 
the JAVA_HOME system variable? If yes, how and where should I set it? In 
a starting script of Fuseki?


Thanks and best regards,
Sandor

Am 19.10.2016 um 15:36 schrieb Dick Murray:

Hi.

Check what version of JRE you have with java -version

dick@Dick-M3800:~$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Your exception should say what version it is having trouble with...

Java SE 9 = 53,
Java SE 8 = 52,
Java SE 7 = 51,
Java SE 6.0 = 50,
Java SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45


On 19 October 2016 at 14:32, Sandor Kopacsi 
wrote:


Dear List Members,

I wanted to start Fuseki 1.3.0 for test purposes, but I got an exception
in thread "main" java.lang.UnsupportedClassVersionError:
org/apache/jena/fuseki/FusekiCmd : Unsupported major.

I do not want to update Fuseki by all means, I just wanted to try
something in this test environment.
It worked so far well, and I did not changed (deliberately) anything.

What can be the reason for that, and what should I do?

Thank you in advance and best regards,
Sandor

--
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center






Getting query results in Apache 2.4.0 web UI

2016-10-19 Thread Mahmood Ahmad
Hi



I used a simple ulo.ttl file (owl file converted to ttl format) to upload on 
dataset /ds (Fuseki 2.4.0) and ran a simple query to get all triples. The file 
uploaded correctly but generated no result in query results portion of the 
Fuseki v2.4.0 web UI, although there are 11 triples in ulo.ttl



The ttl file is attached. There was no result from the execution of query, nor 
a message of success/failure.



Please can you suggest something so that I could get some output from the query?



Regards

Mahmood


Mahmood Ahmad, PhD
KTP Associate

University of Manchester
E: mahmood.ah...@telematicus.com
E: mahmood.ah...@manchester.ac.uk




Re: Unsupported major

2016-10-19 Thread Dick Murray
Hi.

Check what version of JRE you have with java -version

dick@Dick-M3800:~$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Your exception should say what version it is having trouble with...

Java SE 9 = 53,
Java SE 8 = 52,
Java SE 7 = 51,
Java SE 6.0 = 50,
Java SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45


On 19 October 2016 at 14:32, Sandor Kopacsi 
wrote:

> Dear List Members,
>
> I wanted to start Fuseki 1.3.0 for test purposes, but I got an exception
> in thread "main" java.lang.UnsupportedClassVersionError:
> org/apache/jena/fuseki/FusekiCmd : Unsupported major.
>
> I do not want to update Fuseki by all means, I just wanted to try
> something in this test environment.
> It worked so far well, and I did not changed (deliberately) anything.
>
> What can be the reason for that, and what should I do?
>
> Thank you in advance and best regards,
> Sandor
>
> --
> Dr. Sandor Kopacsi
> IT Software Designer
>
> Vienna University Computer Center
>
>


Unsupported major

2016-10-19 Thread Sandor Kopacsi

Dear List Members,

I wanted to start Fuseki 1.3.0 for test purposes, but I got an exception 
in thread "main" java.lang.UnsupportedClassVersionError: 
org/apache/jena/fuseki/FusekiCmd : Unsupported major.


I do not want to update Fuseki by all means, I just wanted to try 
something in this test environment.

It worked so far well, and I did not changed (deliberately) anything.

What can be the reason for that, and what should I do?

Thank you in advance and best regards,
Sandor

--
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center



RE: Fuseki 2.4.0 web user interface

2016-10-19 Thread Mahmood Ahmad
Andy,

I used a simple ulo.ttl file (owl file converted to ttl format) to upload on 
dataset /ds (Fuseki 2.4.0) and ran a simple query to get all triples. The file 
uploaded correctly but generated no result in query results portion of the 
Fuseki v2.4.0 web UI, although there are 11 triples in ulo.ttl

The ttl file is attached. There was no result from the execution of query, nor 
a message of success/failure.

Please can you suggest something so that I could get some output from the query?

Regards
Mahmood



-Original Message-
From: Andy Seaborne [mailto:a...@apache.org] 
Sent: 19 October 2016 13:57
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface

Note what it says at the top of the page:

"""
This page covers Fuseki v1. As of Jena 2.13.0, there is also a new version, 
Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and Fuseki
v2 are currently active and maintained.
"""

You are looking at Fuseki1 documentation.

 Andy

On 19/10/16 13:54, Andy Seaborne wrote:
> It is looking for a file called tdb.ttl which is not found.
>
> --desc is for a assembler file - you have to provide that, the 
> documentation is out of date.
>
> If all you eant is some small data for experimentation:
>
> fuseki-server --file  /ds
>
> will work
>
> If you have a TDB database,
>
> fuseki-server --loc  /ds
>
> Andy
>
> On 19/10/16 12:39, Mahmood Ahmad wrote:
>> Hi,
>>
>> [I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]
>>
>> Can anyone please point me to the tdb.ttl for running a few practice 
>> SPARQL queries? The Apache Jena says that TDB is a part of Apache 
>> Jena
>> 3.1.0 on the following page:
>>
>> http://jena.apache.org/documentation/tdb/index.html
>>
>> I have installed Fuseki 2.4.0 and I am looking to run the Fuseki 
>> Server with tdb.ttl using the command:
>> fuseki-server --desc tdb.ttl /ds
>>
>> as given on the page: 
>> https://jena.apache.org/documentation/serving_data/
>>
>> The error I get is as follows:
>>
>> C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.
>> 4.0>fuseki-server
>> --desc tdb.ttl /ds
>> [2016-10-19 12:14:49] Server INFO  Dataset from assembler
>> org.apache.jena.sparql.ARQException: Failed reading assembler
>> description: Not found: tdb.ttl
>> at
>> org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFil
>> e(AssemblerUtils.java:91)
>>
>> at
>> org.apache.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerU
>> tils.java:104)
>>
>> at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
>> at
>> arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.jav
>> a:43)
>>
>> at
>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAnd
>> Args(FusekiCmd.java:284)
>>
>> at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
>> at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
>> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
>> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
>> at
>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiC
>> md.java:102)
>>
>> at 
>> org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)
>>
>> Any ideas, I'll appreciate.
>>
>> Regards
>> Mahmood
>>
>> Mahmood Ahmad, PhD
>> (Semantic Information Architect)
>>


RE: Fuseki 2.4.0 web user interface

2016-10-19 Thread Mahmood Ahmad
Thank Andy,

I see it now. Is there a documentation page for Fuseki v2 as well?


-Original Message-
From: Andy Seaborne [mailto:a...@apache.org] 
Sent: 19 October 2016 13:57
To: users@jena.apache.org
Subject: Re: Fuseki 2.4.0 web user interface

Note what it says at the top of the page:

"""
This page covers Fuseki v1. As of Jena 2.13.0, there is also a new version, 
Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and Fuseki
v2 are currently active and maintained.
"""

You are looking at Fuseki1 documentation.

 Andy

On 19/10/16 13:54, Andy Seaborne wrote:
> It is looking for a file called tdb.ttl which is not found.
>
> --desc is for a assembler file - you have to provide that, the 
> documentation is out of date.
>
> If all you eant is some small data for experimentation:
>
> fuseki-server --file  /ds
>
> will work
>
> If you have a TDB database,
>
> fuseki-server --loc  /ds
>
> Andy
>
> On 19/10/16 12:39, Mahmood Ahmad wrote:
>> Hi,
>>
>> [I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]
>>
>> Can anyone please point me to the tdb.ttl for running a few practice 
>> SPARQL queries? The Apache Jena says that TDB is a part of Apache 
>> Jena
>> 3.1.0 on the following page:
>>
>> http://jena.apache.org/documentation/tdb/index.html
>>
>> I have installed Fuseki 2.4.0 and I am looking to run the Fuseki 
>> Server with tdb.ttl using the command:
>> fuseki-server --desc tdb.ttl /ds
>>
>> as given on the page: 
>> https://jena.apache.org/documentation/serving_data/
>>
>> The error I get is as follows:
>>
>> C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.
>> 4.0>fuseki-server
>> --desc tdb.ttl /ds
>> [2016-10-19 12:14:49] Server INFO  Dataset from assembler
>> org.apache.jena.sparql.ARQException: Failed reading assembler
>> description: Not found: tdb.ttl
>> at
>> org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFil
>> e(AssemblerUtils.java:91)
>>
>> at
>> org.apache.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerU
>> tils.java:104)
>>
>> at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
>> at
>> arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.jav
>> a:43)
>>
>> at
>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAnd
>> Args(FusekiCmd.java:284)
>>
>> at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
>> at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
>> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
>> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
>> at
>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiC
>> md.java:102)
>>
>> at 
>> org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)
>>
>> Any ideas, I'll appreciate.
>>
>> Regards
>> Mahmood
>>
>> Mahmood Ahmad, PhD
>> (Semantic Information Architect)
>>


Re: Fuseki 2.4.0 web user interface

2016-10-19 Thread Andy Seaborne

Note what it says at the top of the page:

"""
This page covers Fuseki v1. As of Jena 2.13.0, there is also a new 
version, Fuseki v2. See Fuseki2 documentation. Both Fuseki v1 and Fuseki 
v2 are currently active and maintained.

"""

You are looking at Fuseki1 documentation.

Andy

On 19/10/16 13:54, Andy Seaborne wrote:

It is looking for a file called tdb.ttl which is not found.

--desc is for a assembler file - you have to provide that, the
documentation is out of date.

If all you eant is some small data for experimentation:

fuseki-server --file  /ds

will work

If you have a TDB database,

fuseki-server --loc  /ds

Andy

On 19/10/16 12:39, Mahmood Ahmad wrote:

Hi,

[I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]

Can anyone please point me to the tdb.ttl for running a few practice
SPARQL queries? The Apache Jena says that TDB is a part of Apache Jena
3.1.0 on the following page:

http://jena.apache.org/documentation/tdb/index.html

I have installed Fuseki 2.4.0 and I am looking to run the Fuseki
Server with tdb.ttl using the command:
fuseki-server --desc tdb.ttl /ds

as given on the page: https://jena.apache.org/documentation/serving_data/

The error I get is as follows:

C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.4.0>fuseki-server
--desc tdb.ttl /ds
[2016-10-19 12:14:49] Server INFO  Dataset from assembler
org.apache.jena.sparql.ARQException: Failed reading assembler
description: Not found: tdb.ttl
at
org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFile(AssemblerUtils.java:91)

at
org.apache.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerUtils.java:104)

at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
at
arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.java:43)

at
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAndArgs(FusekiCmd.java:284)

at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiCmd.java:102)

at org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)

Any ideas, I'll appreciate.

Regards
Mahmood

Mahmood Ahmad, PhD
(Semantic Information Architect)



Re: Fuseki 2.4.0 web user interface

2016-10-19 Thread Andy Seaborne

It is looking for a file called tdb.ttl which is not found.

--desc is for a assembler file - you have to provide that, the 
documentation is out of date.


If all you eant is some small data for experimentation:

fuseki-server --file  /ds

will work

If you have a TDB database,

fuseki-server --loc  /ds

Andy

On 19/10/16 12:39, Mahmood Ahmad wrote:

Hi,

[I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]

Can anyone please point me to the tdb.ttl for running a few practice SPARQL 
queries? The Apache Jena says that TDB is a part of Apache Jena 3.1.0 on the 
following page:

http://jena.apache.org/documentation/tdb/index.html

I have installed Fuseki 2.4.0 and I am looking to run the Fuseki Server with 
tdb.ttl using the command:
fuseki-server --desc tdb.ttl /ds

as given on the page: https://jena.apache.org/documentation/serving_data/

The error I get is as follows:

C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.4.0>fuseki-server
 --desc tdb.ttl /ds
[2016-10-19 12:14:49] Server INFO  Dataset from assembler
org.apache.jena.sparql.ARQException: Failed reading assembler description: Not 
found: tdb.ttl
at 
org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFile(AssemblerUtils.java:91)
at 
org.apache.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerUtils.java:104)
at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
at 
arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.java:43)
at 
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAndArgs(FusekiCmd.java:284)
at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at 
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiCmd.java:102)
at org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)

Any ideas, I'll appreciate.

Regards
Mahmood

Mahmood Ahmad, PhD
(Semantic Information Architect)



Re: Statistic of Data in owl file

2016-10-19 Thread neha gupta
Yes students here are working on projects but we are working independently.

Will it be useful if we use another owl file to store information,  apart
from our main owl file. And use team1.addLiteral() for Number of goals,
wins etc so that data might not be over written.
And in our main owl file, just use recent information using
team1.setPropertyValue().

On Wed, Oct 19, 2016 at 12:42 AM, Lorenz B. <
buehm...@informatik.uni-leipzig.de> wrote:

> Neha,
>
> given that many of you (I read a lots of similar questions) are doing
> some exercise, you should try to think more complex then.
>
> Obviously, one way would be to keep track of the event when data was
> entered.
>
> > I want just to know is there any approach in which we can keep track of
> > data previously entered.
> > I am very sorry but I have not tried any thing related to it as I am
> > completely blind it? I searched the web from last three-four days but
> could
> > not found hints. That is why I asked here in the experts forum.
> >
> >
> >
> > On Tue, Oct 18, 2016 at 11:27 AM, Andy Seaborne  wrote:
> >
> >> neha,
> >>
> >> Your question is too open ended.  Sounds like the whole exercise you
> have
> >> been asked to do.
> >>
> >> What have you tried?
> >>
> >> Try something and show what you have tried and your thoughts about it.
> (a
> >> complete, minimal example - emphasis on "complete" and "minimal").
> >>
> >> Andy
> >>
> >> On 18/10/16 18:41, neha gupta wrote:
> >>
> >>> Good evening,
> >>> I have some team information in my ontology i-e team1 wins, goals, Euro
> >>> goals, Worldcup goals.
> >>>
> >>>  team1 information will be stored like this in owl file. After one
> month,
> >>> again team1 information will be entered, which of course, will over
> write
> >>> the previous one.
> >>>
> >>> Can I maintain the information previously entered *(store previous
> >>> information in some pdf, word format or any other method*) because
> after
> >>> one year I have to maintain some statistics of team1 and their
> performance
> >>> in the year?
> >>>
> >>>
> --
> Lorenz Bühmann
> AKSW group, University of Leipzig
> Group: http://aksw.org - semantic web research center
>
>


Fuseki 2.4.0 web user interface

2016-10-19 Thread Mahmood Ahmad
Hi,

[I am using Apache Jena Fuseki 2.4.0 on a Windows 10 machine]

Can anyone please point me to the tdb.ttl for running a few practice SPARQL 
queries? The Apache Jena says that TDB is a part of Apache Jena 3.1.0 on the 
following page:

http://jena.apache.org/documentation/tdb/index.html

I have installed Fuseki 2.4.0 and I am looking to run the Fuseki Server with 
tdb.ttl using the command:
fuseki-server --desc tdb.ttl /ds

as given on the page: https://jena.apache.org/documentation/serving_data/

The error I get is as follows:

C:\Users\mahmo_myz922s\apache-jena-fuseki-2.4.0\apache-jena-fuseki-2.4.0>fuseki-server
 --desc tdb.ttl /ds
[2016-10-19 12:14:49] Server INFO  Dataset from assembler
org.apache.jena.sparql.ARQException: Failed reading assembler description: Not 
found: tdb.ttl
at 
org.apache.jena.sparql.core.assembler.AssemblerUtils.readAssemblerFile(AssemblerUtils.java:91)
at 
org.apache.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerUtils.java:104)
at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
at 
arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.java:43)
at 
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAndArgs(FusekiCmd.java:284)
at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at 
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiCmd.java:102)
at org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)

Any ideas, I'll appreciate.

Regards
Mahmood

Mahmood Ahmad, PhD
(Semantic Information Architect)


Re: addliteral() vs setpropertyvalue()

2016-10-19 Thread Lorenz B.


> Yes its true that it returns Null Pointer Exception.
It returns NULL, not a NullPointerException! That's totally different!
>
> But what you people suggest I suppose to do? One thing in my mind is to
> include first:
> employee.addLiteral(Property, 1)
> Then employee.getPropertyValue()
> Then Perform calculation/addition
> And last, employee.setPropertyValue(Property, sum/calculated value).
I don't know your programming skills, but this is more than obvious...

get the value - if this is NULL - simply set the new value - ELSE set
the existing value + the new value
>
> On Mon, Oct 17, 2016 at 12:52 AM, Lorenz B. <
> buehm...@informatik.uni-leipzig.de> wrote:
>
>> Hello Tina,
>>
>>
>>
>>
>>> I want to sum 5 with the value already stored in a property.
>>>
>>> //Property "Hours" must be started from 1 and then sum 5 with it.
>>> employee.getPropertyValue(No_of_Hours);
>>> //Then perform calculations.
>>>
>>> The problem is that if I directly use employee.getPropertyValue(), it
>> gives
>>> me "Exception" (and rightly, because I did not set setPropertyValue()
>>> first).
>> That's not true. It returns null if there is no such value - and you
>> have to handle this in the code indeed.
>>> But the problem is that when I set employee.getPropertyValue(No_
>> of_Hours);
>>>  to 1 (one), it will always set the value 1(one) and not the recent
>>> added(sum) value in the property.
>>>
>>> employee.setPropertyValue(No_of_Hours, 1); //1 is literal
>>> employee.getPropertyValue(No_of_Hours);
>>> //calculations
>>> My requirement is like: int sum=No_of_Hours+1;
>>> Then No_of_Hours plus what in the *variable sum*.
>>>
>>> So can I use employee.addLiteral(No_of_Hours, 1) instead of
>>> employee.setPropertyValue().
>>>
>>> I hope you have understood what my issue is?
>>>
>>> Kindest regards
>>>
>>>
>>>
>>> On Sun, Oct 16, 2016 at 11:10 AM, Dave Reynolds <
>> dave.e.reyno...@gmail.com>
>>> wrote:
>>>
 On 16/10/16 16:59, tina sani wrote:

> Hi
>
> What is the difference between addLiteral() and setpropertyvalue()
>> when we
> want to assign values to an individual.?
> For example,
>
> //myEmployee is an instance.
>
> myEmplyee.addliteral(property, value)
> myEmployee.setpropertyvalue(property, value)
>
>
 addLiteral adds a value, so if there is already a value there you will
>> now
 have multiple values.

 setPropertyValue removes all existing values before adding the new value
 so you will only have the new value at the end.

 Dave


>> --
>> Lorenz Bühmann
>> AKSW group, University of Leipzig
>> Group: http://aksw.org - semantic web research center
>>
>>
-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center



Re: Statistic of Data in owl file

2016-10-19 Thread Lorenz B.
Neha,

given that many of you (I read a lots of similar questions) are doing
some exercise, you should try to think more complex then.

Obviously, one way would be to keep track of the event when data was
entered.

> I want just to know is there any approach in which we can keep track of
> data previously entered.
> I am very sorry but I have not tried any thing related to it as I am
> completely blind it? I searched the web from last three-four days but could
> not found hints. That is why I asked here in the experts forum.
>
>
>
> On Tue, Oct 18, 2016 at 11:27 AM, Andy Seaborne  wrote:
>
>> neha,
>>
>> Your question is too open ended.  Sounds like the whole exercise you have
>> been asked to do.
>>
>> What have you tried?
>>
>> Try something and show what you have tried and your thoughts about it. (a
>> complete, minimal example - emphasis on "complete" and "minimal").
>>
>> Andy
>>
>> On 18/10/16 18:41, neha gupta wrote:
>>
>>> Good evening,
>>> I have some team information in my ontology i-e team1 wins, goals, Euro
>>> goals, Worldcup goals.
>>>
>>>  team1 information will be stored like this in owl file. After one month,
>>> again team1 information will be entered, which of course, will over write
>>> the previous one.
>>>
>>> Can I maintain the information previously entered *(store previous
>>> information in some pdf, word format or any other method*) because after
>>> one year I have to maintain some statistics of team1 and their performance
>>> in the year?
>>>
>>>
-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center