Re: Sparql Update: Insert a property whose value is a calculated average

2017-06-11 Thread Aya Hamdy
t;>> untitled-ontology-6:sensorLocatedInInfrastructure > >>>> true ; > >>>> untitled-ontology-6:sensorLocatedInVehicle > >>>> false ; > >>>> untitled-ontology-6:sensor_id

Re: Sparql Update: Insert a property whose value is a calculated average

2017-06-09 Thread Aya Hamdy
Replace ";" by "." > > Lorenz showed you the correct syntax. > > "?ass cv:avgSpeedSensor_Infrastructue ?r ."+ >> > > Print the query out and see what it looks like. Hence the earlier > suggestion you put newlines in the query. > >

Re: Sparql Update: Insert a property whose value is a calculated average

2017-06-09 Thread Aya Hamdy
pagated to the outer query, thus, > > it's not bound to the INSERT part. > > > > Why not do it like here (note, I dPREFIX rdf: > > <http://www.w3.org/1999/02/22-rdf-syntax-ns#> > > PREFIX cv: > > <http://www.semanticweb.org/toshiba/ontologies/2017/3/ &g

Re: Sparql Update: Insert a property whose value is a calculated average

2017-06-09 Thread Aya Hamdy
renz Buehmann wrote: > >> You forgot the attachments... >> >> >> On 09.06.2017 03:02, Aya Hamdy wrote: >> >>> Attached is a file of my code and my ontology which I have imported on >>> Eclipse. >>> >>> I have finally fixed the nul

Re: Sparql Update: Insert a property whose value is a calculated average

2017-06-08 Thread Aya Hamdy
uni-leipzig.de> wrote: > If results are bound it can't be a null value. Please show your updated > code. > > > On 07.06.2017 14:58, Aya Hamdy wrote: > > Sorry about the x, It was a stupid mistake. But it is nit the cause of > the > > null. When I fixed it, the

Re: Sparql Update: Insert a property whose value is a calculated average

2017-06-07 Thread Aya Hamdy
<a...@apache.org> wrote: > > > On 06/06/17 00:26, Aya Hamdy wrote: > >> Ok. That sounds reasonable so I will work on breaking down my chain of >> thought into smaller pieces. Thank you so much. >> >> I saw an example online where the query syntax is written as

Re: Sparql Update: Insert a property whose value is a calculated average

2017-06-05 Thread Aya Hamdy
about trying to figure out the problem with the insert function? Sorry if my questions are too naive, but I am trying to grasp the concepts as much as possible. Best Regards, Aya On Mon, Jun 5, 2017 at 8:32 PM, Andy Seaborne <a...@apache.org> wrote: > Then find the sensor of inte

Re: Sparql Update: Insert a property whose value is a calculated average

2017-06-05 Thread Aya Hamdy
ed ?avg > > } WHERE { > > SELECT ?v (AVG(?speed) AS ?avg) { > > .... > > } GROUP BY ?v > > } > > > On 05.06.2017 17:03, Aya Hamdy wrote: > > Hello, > > > > I will try to explain with examples. I have generated my ontology from > >

Re: Sparql Update: Insert a property whose value is a calculated average

2017-06-05 Thread Aya Hamdy
; :avgSpeedSensor_Infrastructure ?r } } But the value of the should come from reading the file, right? On Sun, Jun 4, 2017 at 9:04 PM, Andy Seaborne <a...@apache.org> wrote: > > > On 04/06/17 18:47, Aya Hamdy wrote: > >> Hello, >> >> I want

Sparql Update: Insert a property whose value is a calculated average

2017-06-04 Thread Aya Hamdy
Hello, I wanted to add a property called avgSpeed to an instance of a class called FlowSensor. This property should be the average of the values of the property vehicleSpeed attached to instances of the class Vehicle. I read that SPARQL update allows doing this. However, I cannot reach the

SPARQL Tutorial - Querying Datasets. Error : Unrecognized option: --graph

2017-03-26 Thread Aya Hamdy
Hello, I am following the documentation on using sparql ... I am trying to learn how to query datasets as per this link http://jena.apache.org/tutorials/sparql_datasets.html under the title Example Data we have a default graph and two namedgraphs and then we are supposed to use this command to

Re: Missing file in the jena RDF API documentation

2017-03-12 Thread Aya Hamdy
jena.apache.org/tutorials/sparql_data/vc-db-1.rdf > > The site is normally updated at least for every release. > > --- > A. Soroka > The University of Virginia Library > > > On Mar 12, 2017, at 4:22 PM, Aya Hamdy <aya.bad...@gmail.com> wrote: > > > > Yes ex

Re: Missing file in the jena RDF API documentation

2017-03-12 Thread Aya Hamdy
ou report. Are you > looking at some kind of cached off-line version of the site? > > --- > A. Soroka > The University of Virginia Library > > > On Mar 12, 2017, at 2:51 PM, Aya Hamdy <aya.bad...@gmail.com> wrote: > > > > I used "Improve this P

Re: Missing file in the jena RDF API documentation

2017-03-12 Thread Aya Hamdy
I used "Improve this Page" and commented at the beginning of tutorial 5 that the Vcards database used in this tutorial is not provided here or on the GitHub file for the tutorial. Is that appropriate? (I am asking for future reference because I tried it before but I saw that the tThe email

Missing file in the jena RDF API documentation

2017-03-12 Thread Aya Hamdy
Hello, I have been exploring the Jena RDF API documentation found at the following URL: http://jena.apache.org/tutorials/rdf_api.html Starting Tutorial 5 the documentation is using a file if Vcards called " vc-db-1.rdf". However, this file is provided neither with the documentation nor with