Re: there is a tutorial on the use of fuseki on jsp (JavaServer Pages), to be able to consult about the web platform

2017-11-21 Thread Manuel Quintero Fonseca
I could make a query to show it on a page with jsp with the information on
the following page:
https://www.codementor.io/isaib.cicourel/sparql-query-using-endpoints-101-du10884g8


Now it is still possible to format the presentation with html, and a search
box, we will see how it is going

2017-11-21 11:52 GMT-07:00 John A. Fereira :

> I have done something like this but it’s a bit too complex to describe on
> a mailing list.  It’s basically a Spring MVC java web application that uses
> JSP (and JSTL) at a view layer for the results.  Paul Tysons suggestion to
> use a javascript library rather than JSP is a good one.  Basically, you’ll
> need some server code that executes the SPARQL against the Fuseki endpoint,
> then maps the result set to a list of objects.  The mapping piece has to
> account for results which have multiple values (e.g. subject uri has
> multiple instances of a predicate.  For example,  a Person uri may have
> multiple research areas, but only one “given name”.   The mapper has to
> know which properties are multivalued and which have a single result.
>  Once the result set has been mapped to an object, it can be passed to the
> JSP, or transformed to JSON using a library such as Jackson.
>
> On 11/21/17, 1:21 PM, "Manuel Quintero Fonseca"  wrote:
>
> Yes, I want to make a query with sparql in fuseki, to show the result
> in a
> web. what has been researched, happens to use java for web pages JSP is
> used in tomcat.
>
> 2017-11-21 6:55 GMT-07:00 ajs6f :
>
> > Are you asking about the use of Fuseki from JSP pages? That is,
> using JSP
> > pages to send queries to Fuseki?
> >
> > ajs6f
> >
> > > On Nov 20, 2017, at 9:56 PM, Manuel Quintero Fonseca <
> man...@uas.edu.mx>
> > wrote:
> > >
> > > Hello, there is a tutorial on the use of fuseki on jsp (JavaServer
> > Pages),
> > > to be able to consult about the web platform
> > >
> > > Information on this subject is very scarce, and in the official
> > > documentation or say, is unclear.
> > >
> > > Thank you
> >
> >
>
>
>


Advice on hardware upgrade

2017-11-21 Thread John Sanders
Hi, I'm running a Fuseki server on a rather small server. I'm willing to  
upgrade it a little bit (since it's handling a lot of requests) so I  was 
wondering which single component I could upgrade to get the best  possible 
return. This I suppose boils down to either more RAM or a  better CPU. 
Currently the server is an old Pentium4 3GHz with 2gb of  RAM, so if I have 
some money to spend on it, would I be better buying  more RAM or a better CPU? 
In the second case (a better CPU), would  Fuseki benefit more from a faster one 
(higher frequency) or one with  more cores/threads (I assume Fuseki is a 
multi-threaded application)?  Thank you all.


Re: problem with VALUES querybuilder

2017-11-21 Thread Claude Warren
I have added options to add values inside the graph patterns but have not
had time to write the test cases yet.

I expect to have the additional features added and tested tomorrow night.

I am also add a series of addGraph( graph, [ some sort of triple here ] )
methods to create simple graphs queries where a single triple is all that
is requested.  I found I wanted this while I was working on some other code
today. ;)

Claude

On Tue, Nov 21, 2017 at 2:52 PM, Andy Seaborne  wrote:

> Yes, there is a difference.
>
> It (the join) happens just before project and after any GROUP BY.
>
> See the algebra at http://www.sparql.org/query-validator.html
>
> Andy
>
>
> On 21/11/17 14:46, Claude Warren wrote:
>
>> based on https://www.w3.org/TR/sparql11-query/#inline-data-examples
>>
>> there is no difference between values  blocks inside or outside a graph
>> pattern.
>>
>> On Tue, Nov 21, 2017 at 2:35 PM, Claude Warren  wrote:
>>
>> Currently the values are always placed in the top level of the query.
>>>
>>> Q: does it make a difference to exeuction?  (I suspect it does but I want
>>> to make sure before I proceed to add a method to place it inside the
>>> graph
>>> pattern.
>>>
>>> Claude
>>>
>>> On Tue, Nov 21, 2017 at 1:20 PM, Rob Vesse  wrote:
>>>
>>> The output you get is syntactically valid - VALUES is allowed at the top
 level of the query as well as within graph patterns

   It is not clear to me if the latter this Is actually possible with the
 current query builder, Claude can probably give you a more detailed
 answer

 Rob


 On 21/11/2017, 12:05, "Chris Dollin" 
 wrote:

  Dear All

  I'm missing something with use of the query builder to create
 VALUES
  clauses.
  The code

  @Test public void buildValues() {
  SelectBuilder sb = new SelectBuilder();
  sb.addValueVar("item",  "spoo", "flarn");
  System.err.println(sb.buildString());
  }

  generates

SELECT  *
WHERE
  {  }
VALUES ?item { "spoo" "flarn" }

  which I believe to be syntactically incorrect but in any case I
 want
 the
  generated VALUES clause to be inside the WHERE {} ie

SELECT * WHERE {VALUES ?item {"spoo" "flarn"}}}

  What should I be doing and how should I have known that?

  Chris

  PS please to excuse the misuse of @Test here ... exploratory use
 only.

  --
  "What I don't understand is this ..."   Trevor Chaplin, /The
 Beiderbeck
  Affair/

  Epimorphics Ltd, http://www.epimorphics.com
  Registered address: Court Lodge, 105 High Street, Portishead,
 Bristol
 BS20
  6PT
  Epimorphics Ltd. is a limited company registered in England (number
 7016688)







>>>
>>> --
>>> I like: Like Like - The likeliest place on the web
>>> 
>>> LinkedIn: http://www.linkedin.com/in/claudewarren
>>>
>>>
>>
>>
>>


-- 
I like: Like Like - The likeliest place on the web

LinkedIn: http://www.linkedin.com/in/claudewarren


Re: there is a tutorial on the use of fuseki on jsp (JavaServer Pages), to be able to consult about the web platform

2017-11-21 Thread John A. Fereira
I have done something like this but it’s a bit too complex to describe on a 
mailing list.  It’s basically a Spring MVC java web application that uses JSP 
(and JSTL) at a view layer for the results.  Paul Tysons suggestion to use a 
javascript library rather than JSP is a good one.  Basically, you’ll need some 
server code that executes the SPARQL against the Fuseki endpoint, then maps the 
result set to a list of objects.  The mapping piece has to account for results 
which have multiple values (e.g. subject uri has multiple instances of a 
predicate.  For example,  a Person uri may have multiple research areas, but 
only one “given name”.   The mapper has to know which properties are 
multivalued and which have a single result.   Once the result set has been 
mapped to an object, it can be passed to the JSP, or transformed to JSON using 
a library such as Jackson.

On 11/21/17, 1:21 PM, "Manuel Quintero Fonseca"  wrote:

Yes, I want to make a query with sparql in fuseki, to show the result in a
web. what has been researched, happens to use java for web pages JSP is
used in tomcat.

2017-11-21 6:55 GMT-07:00 ajs6f :

> Are you asking about the use of Fuseki from JSP pages? That is, using JSP
> pages to send queries to Fuseki?
>
> ajs6f
>
> > On Nov 20, 2017, at 9:56 PM, Manuel Quintero Fonseca 
> wrote:
> >
> > Hello, there is a tutorial on the use of fuseki on jsp (JavaServer
> Pages),
> > to be able to consult about the web platform
> >
> > Information on this subject is very scarce, and in the official
> > documentation or say, is unclear.
> >
> > Thank you
>
>




Re: there is a tutorial on the use of fuseki on jsp (JavaServer Pages), to be able to consult about the web platform

2017-11-21 Thread Paul Tyson


> On Nov 21, 2017, at 12:21, Manuel Quintero Fonseca  wrote:
> 
> Yes, I want to make a query with sparql in fuseki, to show the result in a
> web. what has been researched, happens to use java for web pages JSP is
> used in tomcat.

You might have a good reason (or requirement) to use jsp, but it is not 
necessary. Any JavaScript framework for dom and ajax will work. My favorite is 
d3 (d3js.org).

Regards,
--Paul

> 
> 2017-11-21 6:55 GMT-07:00 ajs6f :
> 
>> Are you asking about the use of Fuseki from JSP pages? That is, using JSP
>> pages to send queries to Fuseki?
>> 
>> ajs6f
>> 
>>> On Nov 20, 2017, at 9:56 PM, Manuel Quintero Fonseca 
>> wrote:
>>> 
>>> Hello, there is a tutorial on the use of fuseki on jsp (JavaServer
>> Pages),
>>> to be able to consult about the web platform
>>> 
>>> Information on this subject is very scarce, and in the official
>>> documentation or say, is unclear.
>>> 
>>> Thank you
>> 
>> 



Re: there is a tutorial on the use of fuseki on jsp (JavaServer Pages), to be able to consult about the web platform

2017-11-21 Thread Manuel Quintero Fonseca
Yes, I want to make a query with sparql in fuseki, to show the result in a
web. what has been researched, happens to use java for web pages JSP is
used in tomcat.

2017-11-21 6:55 GMT-07:00 ajs6f :

> Are you asking about the use of Fuseki from JSP pages? That is, using JSP
> pages to send queries to Fuseki?
>
> ajs6f
>
> > On Nov 20, 2017, at 9:56 PM, Manuel Quintero Fonseca 
> wrote:
> >
> > Hello, there is a tutorial on the use of fuseki on jsp (JavaServer
> Pages),
> > to be able to consult about the web platform
> >
> > Information on this subject is very scarce, and in the official
> > documentation or say, is unclear.
> >
> > Thank you
>
>


Re: sixteenth anniversary

2017-11-21 Thread Marco Neumann
congratulations to the entire Jena community it's a great open source
for many projects, products and research activities around the world.

is there a copy of the first release available with source code
(http://www-uk.hpl.hp.com/people/bwm/rdf/jena  4/2001)?

Best,
Marco

On Mon, Nov 20, 2017 at 5:09 PM, Andy Seaborne  wrote:
> Today, November 20th, 2017, is the sixteenth anniversary of the registration
> of Jena as a SourceForge project.
>
> https://sourceforge.net/projects/jena/
> 2001-11-20
>
> The entire code history up until the migration to git is available in Apache
> SVN - from CVS at SF, SVN at SF and SVN at Apache.
>
> Andy



-- 


---
Marco Neumann
KONA


Re: sixteenth anniversary

2017-11-21 Thread Zhe Wu
Congratulations! Andy and team have  done a great job!

Thanks  

Zhe
Architect | Oracle

Sent from BlueMail for iPhone
On Nov 21, 2017 at 1:40 AM, Jean-Marc Vanel  wrote:

Congratulations Andy !  

In addition to this nice doo-wop Platters - like ,  
I propose this very well know song,  
Sweet little Sixteen, by Chuck Berry,  
filmed in 1958 at the Newport Jazz festival:  
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.youtube.com_watch-3Fv-3DUd8peXosPLg=DwIFaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=BysOb4QVJxZ15N4eM7-eqdh93tgSvACNSXP604-m0Kg=XXaFrx14yo-z5vGuhjQ4VwlfIMRZ_wV0wmH4YLbwdpA=NhPrIjSYb8gTx7snUUfe215nxm9m0UX4vngwDcZS-eQ=
  

2017-11-20 17:23 GMT+01:00 Claude Warren :  

Or perhaps a song 
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.youtube.com_watch-3Fv-3DyoOuTSBAWWA=DwIFaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=BysOb4QVJxZ15N4eM7-eqdh93tgSvACNSXP604-m0Kg=XXaFrx14yo-z5vGuhjQ4VwlfIMRZ_wV0wmH4YLbwdpA=NvhTjr15RXAb4CykpQOOgVx0zh4CeI0j9EnCqq_2pRo=
  


On Mon, Nov 20, 2017 at 4:22 PM, Claude Warren  wrote:  

We need a cake :)  

On Mon, Nov 20, 2017 at 4:09 PM, Andy Seaborne  wrote:  

Today, November 20th, 2017, is the sixteenth anniversary of the  
registration of Jena as a SourceForge project.  

https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceforge.net_projects_jena_=DwIFaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=BysOb4QVJxZ15N4eM7-eqdh93tgSvACNSXP604-m0Kg=XXaFrx14yo-z5vGuhjQ4VwlfIMRZ_wV0wmH4YLbwdpA=ziqaceM5GSNp8d88wDXGCucHmn3gsG2YwrL8qOuhLlM=
  
2001-11-20  

The entire code history up until the migration to git is available in  
Apache SVN - from CVS at SF, SVN at SF and SVN at Apache.  

Andy  




--  
I like: Like Like - The likeliest place on the web  

  
LinkedIn: 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_claudewarren=DwIFaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=BysOb4QVJxZ15N4eM7-eqdh93tgSvACNSXP604-m0Kg=XXaFrx14yo-z5vGuhjQ4VwlfIMRZ_wV0wmH4YLbwdpA=lGxJbnPqAYQSn7BrA8lKSC8UgeV8--1aDpLf5N_5Y00=
  




--  
I like: Like Like - The likeliest place on the web  

  
LinkedIn: 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_claudewarren=DwIFaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=BysOb4QVJxZ15N4eM7-eqdh93tgSvACNSXP604-m0Kg=XXaFrx14yo-z5vGuhjQ4VwlfIMRZ_wV0wmH4YLbwdpA=lGxJbnPqAYQSn7BrA8lKSC8UgeV8--1aDpLf5N_5Y00=
  




--  
Jean-Marc Vanel  
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.semantic-2Dforms.cc-3A9111_display-3Fdisplayuri-3Dhttp-3A__jmvanel.free.fr_jmv.rdf-2523me-23subject=DwIFaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=BysOb4QVJxZ15N4eM7-eqdh93tgSvACNSXP604-m0Kg=XXaFrx14yo-z5vGuhjQ4VwlfIMRZ_wV0wmH4YLbwdpA=wWfu-jeROoJh5cdUIJYMX_mP-rfk25QWLd7Rr1Ff_ss=
  

  
Déductions SARL - Consulting, services, training,  
Rule-based programming, Semantic Web  
+33 (0)6 89 16 29 52  
Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui  



Re: Loading dataset with relative IRIs

2017-11-21 Thread ajs6f
> BUT if you get relative URIs into the dataset, don't expect everything else 
> to work seamlessly. e.g. SPARQL - in syntax, relative URIs are resolved.

Amen. For example, if you serve this data via Fuseki you may find that clients 
have problems because their requests are getting resolved with respect to 
unexpected bases.

Really not a good road to go down.

ajs6f

> On Nov 21, 2017, at 10:28 AM, Andy Seaborne  wrote:
> 
> As Martynas says, RDF is defined in terms of absolute URIs.
> 
> It is MUCH better to invent a base like "http://myBase/;.
> 
> For Trig, IRI resolution relative the base is always done and there is always 
> a base, RIOT will insert http://base reading from an input stream for TriG.
> 
> The only bypass is to read in N-Quads from an input stream.
> 
> BUT if you get relative URIs into the dataset, don't expect everything else 
> to work seamlessly.  e.g. SPARQL - in syntax, relative URIs are resolved.
> 
>Andy
> 
> On 21/11/17 14:54, Mohammad Noorani Bakerally wrote:
>> is it possible to explicitly set a base when loading the dataset ?
>> ‌
>> On Tue, Nov 21, 2017 at 3:46 PM, Martynas Jusevičius >> wrote:
>>> You cannot. RDF data model is based on absolute URIs.
>>> 
>>> On Tue, Nov 21, 2017 at 3:35 PM, Mohammad Noorani Bakerally <
>>> noorani.bakera...@gmail.com> wrote:
>>> 
 I have a dataset in a trig file with resources having relative iris, when
 loading them with the method RDFDataMgr.loadDataset, all the relative
>>> IRIs
 are converted to absolute iris, how can I prevent this, I want them to
 retain their relative IRIs ? ‌
 
>>> 



Re: Loading dataset with relative IRIs

2017-11-21 Thread Andy Seaborne

As Martynas says, RDF is defined in terms of absolute URIs.

It is MUCH better to invent a base like "http://myBase/;.

For Trig, IRI resolution relative the base is always done and there is 
always a base, RIOT will insert http://base reading from an input stream 
for TriG.


The only bypass is to read in N-Quads from an input stream.

BUT if you get relative URIs into the dataset, don't expect everything 
else to work seamlessly.  e.g. SPARQL - in syntax, relative URIs are 
resolved.


Andy

On 21/11/17 14:54, Mohammad Noorani Bakerally wrote:

is it possible to explicitly set a base when loading the dataset ?



‌

On Tue, Nov 21, 2017 at 3:46 PM, Martynas Jusevičius  wrote:


I have a dataset in a trig file with resources having relative iris, when
loading them with the method RDFDataMgr.loadDataset, all the relative

IRIs

are converted to absolute iris, how can I prevent this, I want them to
retain their relative IRIs ? ‌







Re: Loading dataset with relative IRIs

2017-11-21 Thread Mohammad Noorani Bakerally
The link you gave I didn't, I was checking the RDFParser (
http://jena.apache.org/documentation/javadoc/arq/org/apache/jena/riot/RDFParser.html
),

thanks for the link,




‌

On Tue, Nov 21, 2017 at 4:03 PM, Martynas Jusevičius  wrote:

> Yes. Did you look at the JavaDoc?
> https://jena.apache.org/documentation/javadoc/arq/org/
> apache/jena/riot/RDFDataMgr.html#read-org.apache.jena.
> query.Dataset-java.lang.String-java.lang.String-org.apache.jena.riot.Lang-
>
> On Tue, Nov 21, 2017 at 3:54 PM, Mohammad Noorani Bakerally <
> noorani.bakera...@gmail.com> wrote:
>
> > is it possible to explicitly set a base when loading the dataset ?
> >
> >
> >
> > ‌
> >
> > On Tue, Nov 21, 2017 at 3:46 PM, Martynas Jusevičius <
> > marty...@atomgraph.com
> > > wrote:
> >
> > > You cannot. RDF data model is based on absolute URIs.
> > >
> > > On Tue, Nov 21, 2017 at 3:35 PM, Mohammad Noorani Bakerally <
> > > noorani.bakera...@gmail.com> wrote:
> > >
> > > > I have a dataset in a trig file with resources having relative iris,
> > when
> > > > loading them with the method RDFDataMgr.loadDataset, all the relative
> > > IRIs
> > > > are converted to absolute iris, how can I prevent this, I want them
> to
> > > > retain their relative IRIs ? ‌
> > > >
> > >
> >
>


Re: Loading dataset with relative IRIs

2017-11-21 Thread Martynas Jusevičius
Yes. Did you look at the JavaDoc?
https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/riot/RDFDataMgr.html#read-org.apache.jena.query.Dataset-java.lang.String-java.lang.String-org.apache.jena.riot.Lang-

On Tue, Nov 21, 2017 at 3:54 PM, Mohammad Noorani Bakerally <
noorani.bakera...@gmail.com> wrote:

> is it possible to explicitly set a base when loading the dataset ?
>
>
>
> ‌
>
> On Tue, Nov 21, 2017 at 3:46 PM, Martynas Jusevičius <
> marty...@atomgraph.com
> > wrote:
>
> > You cannot. RDF data model is based on absolute URIs.
> >
> > On Tue, Nov 21, 2017 at 3:35 PM, Mohammad Noorani Bakerally <
> > noorani.bakera...@gmail.com> wrote:
> >
> > > I have a dataset in a trig file with resources having relative iris,
> when
> > > loading them with the method RDFDataMgr.loadDataset, all the relative
> > IRIs
> > > are converted to absolute iris, how can I prevent this, I want them to
> > > retain their relative IRIs ? ‌
> > >
> >
>


Re: Loading dataset with relative IRIs

2017-11-21 Thread Mohammad Noorani Bakerally
is it possible to explicitly set a base when loading the dataset ?



‌

On Tue, Nov 21, 2017 at 3:46 PM, Martynas Jusevičius  wrote:

> You cannot. RDF data model is based on absolute URIs.
>
> On Tue, Nov 21, 2017 at 3:35 PM, Mohammad Noorani Bakerally <
> noorani.bakera...@gmail.com> wrote:
>
> > I have a dataset in a trig file with resources having relative iris, when
> > loading them with the method RDFDataMgr.loadDataset, all the relative
> IRIs
> > are converted to absolute iris, how can I prevent this, I want them to
> > retain their relative IRIs ? ‌
> >
>


Re: problem with VALUES querybuilder

2017-11-21 Thread Andy Seaborne

Yes, there is a difference.

It (the join) happens just before project and after any GROUP BY.

See the algebra at http://www.sparql.org/query-validator.html

Andy

On 21/11/17 14:46, Claude Warren wrote:

based on https://www.w3.org/TR/sparql11-query/#inline-data-examples

there is no difference between values  blocks inside or outside a graph
pattern.

On Tue, Nov 21, 2017 at 2:35 PM, Claude Warren  wrote:


Currently the values are always placed in the top level of the query.

Q: does it make a difference to exeuction?  (I suspect it does but I want
to make sure before I proceed to add a method to place it inside the graph
pattern.

Claude

On Tue, Nov 21, 2017 at 1:20 PM, Rob Vesse  wrote:


The output you get is syntactically valid - VALUES is allowed at the top
level of the query as well as within graph patterns

  It is not clear to me if the latter this Is actually possible with the
current query builder, Claude can probably give you a more detailed answer

Rob


On 21/11/2017, 12:05, "Chris Dollin" 
wrote:

 Dear All

 I'm missing something with use of the query builder to create VALUES
 clauses.
 The code

 @Test public void buildValues() {
 SelectBuilder sb = new SelectBuilder();
 sb.addValueVar("item",  "spoo", "flarn");
 System.err.println(sb.buildString());
 }

 generates

   SELECT  *
   WHERE
 {  }
   VALUES ?item { "spoo" "flarn" }

 which I believe to be syntactically incorrect but in any case I want
the
 generated VALUES clause to be inside the WHERE {} ie

   SELECT * WHERE {VALUES ?item {"spoo" "flarn"}}}

 What should I be doing and how should I have known that?

 Chris

 PS please to excuse the misuse of @Test here ... exploratory use only.

 --
 "What I don't understand is this ..."   Trevor Chaplin, /The
Beiderbeck
 Affair/

 Epimorphics Ltd, http://www.epimorphics.com
 Registered address: Court Lodge, 105 High Street, Portishead, Bristol
BS20
 6PT
 Epimorphics Ltd. is a limited company registered in England (number
7016688)









--
I like: Like Like - The likeliest place on the web

LinkedIn: http://www.linkedin.com/in/claudewarren







Re: problem with VALUES querybuilder

2017-11-21 Thread Andy Seaborne

You can check syntax at:

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

On 21/11/17 12:05, Chris Dollin wrote:

Dear All

I'm missing something with use of the query builder to create VALUES
clauses.
The code

 @Test public void buildValues() {
 SelectBuilder sb = new SelectBuilder();
 sb.addValueVar("item",  "spoo", "flarn");
 System.err.println(sb.buildString());
 }

generates

   SELECT  *
   WHERE
 {  }
   VALUES ?item { "spoo" "flarn" }

which I believe to be syntactically incorrect but in any case I want the
generated VALUES clause to be inside the WHERE {} ie

   SELECT * WHERE {VALUES ?item {"spoo" "flarn"}}}

What should I be doing and how should I have known that?

Chris

PS please to excuse the misuse of @Test here ... exploratory use only.



Re: Loading dataset with relative IRIs

2017-11-21 Thread Martynas Jusevičius
You cannot. RDF data model is based on absolute URIs.

On Tue, Nov 21, 2017 at 3:35 PM, Mohammad Noorani Bakerally <
noorani.bakera...@gmail.com> wrote:

> I have a dataset in a trig file with resources having relative iris, when
> loading them with the method RDFDataMgr.loadDataset, all the relative IRIs
> are converted to absolute iris, how can I prevent this, I want them to
> retain their relative IRIs ? ‌
>


Re: problem with VALUES querybuilder

2017-11-21 Thread Claude Warren
based on https://www.w3.org/TR/sparql11-query/#inline-data-examples

there is no difference between values  blocks inside or outside a graph
pattern.

On Tue, Nov 21, 2017 at 2:35 PM, Claude Warren  wrote:

> Currently the values are always placed in the top level of the query.
>
> Q: does it make a difference to exeuction?  (I suspect it does but I want
> to make sure before I proceed to add a method to place it inside the graph
> pattern.
>
> Claude
>
> On Tue, Nov 21, 2017 at 1:20 PM, Rob Vesse  wrote:
>
>> The output you get is syntactically valid - VALUES is allowed at the top
>> level of the query as well as within graph patterns
>>
>>  It is not clear to me if the latter this Is actually possible with the
>> current query builder, Claude can probably give you a more detailed answer
>>
>> Rob
>>
>>
>> On 21/11/2017, 12:05, "Chris Dollin" 
>> wrote:
>>
>> Dear All
>>
>> I'm missing something with use of the query builder to create VALUES
>> clauses.
>> The code
>>
>> @Test public void buildValues() {
>> SelectBuilder sb = new SelectBuilder();
>> sb.addValueVar("item",  "spoo", "flarn");
>> System.err.println(sb.buildString());
>> }
>>
>> generates
>>
>>   SELECT  *
>>   WHERE
>> {  }
>>   VALUES ?item { "spoo" "flarn" }
>>
>> which I believe to be syntactically incorrect but in any case I want
>> the
>> generated VALUES clause to be inside the WHERE {} ie
>>
>>   SELECT * WHERE {VALUES ?item {"spoo" "flarn"}}}
>>
>> What should I be doing and how should I have known that?
>>
>> Chris
>>
>> PS please to excuse the misuse of @Test here ... exploratory use only.
>>
>> --
>> "What I don't understand is this ..."   Trevor Chaplin, /The
>> Beiderbeck
>> Affair/
>>
>> Epimorphics Ltd, http://www.epimorphics.com
>> Registered address: Court Lodge, 105 High Street, Portishead, Bristol
>> BS20
>> 6PT
>> Epimorphics Ltd. is a limited company registered in England (number
>> 7016688)
>>
>>
>>
>>
>>
>>
>
>
> --
> I like: Like Like - The likeliest place on the web
> 
> LinkedIn: http://www.linkedin.com/in/claudewarren
>



-- 
I like: Like Like - The likeliest place on the web

LinkedIn: http://www.linkedin.com/in/claudewarren


Re: problem with VALUES querybuilder

2017-11-21 Thread Claude Warren
Currently the values are always placed in the top level of the query.

Q: does it make a difference to exeuction?  (I suspect it does but I want
to make sure before I proceed to add a method to place it inside the graph
pattern.

Claude

On Tue, Nov 21, 2017 at 1:20 PM, Rob Vesse  wrote:

> The output you get is syntactically valid - VALUES is allowed at the top
> level of the query as well as within graph patterns
>
>  It is not clear to me if the latter this Is actually possible with the
> current query builder, Claude can probably give you a more detailed answer
>
> Rob
>
>
> On 21/11/2017, 12:05, "Chris Dollin"  wrote:
>
> Dear All
>
> I'm missing something with use of the query builder to create VALUES
> clauses.
> The code
>
> @Test public void buildValues() {
> SelectBuilder sb = new SelectBuilder();
> sb.addValueVar("item",  "spoo", "flarn");
> System.err.println(sb.buildString());
> }
>
> generates
>
>   SELECT  *
>   WHERE
> {  }
>   VALUES ?item { "spoo" "flarn" }
>
> which I believe to be syntactically incorrect but in any case I want
> the
> generated VALUES clause to be inside the WHERE {} ie
>
>   SELECT * WHERE {VALUES ?item {"spoo" "flarn"}}}
>
> What should I be doing and how should I have known that?
>
> Chris
>
> PS please to excuse the misuse of @Test here ... exploratory use only.
>
> --
> "What I don't understand is this ..."   Trevor Chaplin, /The Beiderbeck
> Affair/
>
> Epimorphics Ltd, http://www.epimorphics.com
> Registered address: Court Lodge, 105 High Street, Portishead, Bristol
> BS20
> 6PT
> Epimorphics Ltd. is a limited company registered in England (number
> 7016688)
>
>
>
>
>
>


-- 
I like: Like Like - The likeliest place on the web

LinkedIn: http://www.linkedin.com/in/claudewarren


Loading dataset with relative IRIs

2017-11-21 Thread Mohammad Noorani Bakerally
I have a dataset in a trig file with resources having relative iris, when
loading them with the method RDFDataMgr.loadDataset, all the relative IRIs
are converted to absolute iris, how can I prevent this, I want them to
retain their relative IRIs ? ‌


Re: problem with VALUES querybuilder

2017-11-21 Thread Rob Vesse
The output you get is syntactically valid - VALUES is allowed at the top level 
of the query as well as within graph patterns

 It is not clear to me if the latter this Is actually possible with the current 
query builder, Claude can probably give you a more detailed answer

Rob


On 21/11/2017, 12:05, "Chris Dollin"  wrote:

Dear All

I'm missing something with use of the query builder to create VALUES
clauses.
The code

@Test public void buildValues() {
SelectBuilder sb = new SelectBuilder();
sb.addValueVar("item",  "spoo", "flarn");
System.err.println(sb.buildString());
}

generates

  SELECT  *
  WHERE
{  }
  VALUES ?item { "spoo" "flarn" }

which I believe to be syntactically incorrect but in any case I want the
generated VALUES clause to be inside the WHERE {} ie

  SELECT * WHERE {VALUES ?item {"spoo" "flarn"}}}

What should I be doing and how should I have known that?

Chris

PS please to excuse the misuse of @Test here ... exploratory use only.

-- 
"What I don't understand is this ..."   Trevor Chaplin, /The Beiderbeck
Affair/

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20
6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)







Advice on hardware upgrade

2017-11-21 Thread 94al51+ch8i714ks7p90
Hi, I'm running a Fuseki server on a rather small server. I'm willing to 
upgrade it a little bit (since it's handling a lot of requests) so I was 
wondering which single component I could upgrade to get the best possible 
return. This I suppose boils down to either more RAM or a better CPU. Currently 
the server is an old Pentium4 3GHz with 2gb of RAM, so if I have some money to 
spend on it, would I be better buying more RAM or a better CPU? In the second 
case (a better CPU), would Fuseki benefit more from a faster one (higher 
frequency) or one with more cores/threads (I assume Fuseki is a multi-threaded 
application)? Thank you all.






Sent using Guerrillamail.com
Block or report abuse: 
https://www.guerrillamail.com//abuse/?a=VFJxFx4gSbEbiUC14H8cehGJQtiX




problem with VALUES querybuilder

2017-11-21 Thread Chris Dollin
Dear All

I'm missing something with use of the query builder to create VALUES
clauses.
The code

@Test public void buildValues() {
SelectBuilder sb = new SelectBuilder();
sb.addValueVar("item",  "spoo", "flarn");
System.err.println(sb.buildString());
}

generates

  SELECT  *
  WHERE
{  }
  VALUES ?item { "spoo" "flarn" }

which I believe to be syntactically incorrect but in any case I want the
generated VALUES clause to be inside the WHERE {} ie

  SELECT * WHERE {VALUES ?item {"spoo" "flarn"}}}

What should I be doing and how should I have known that?

Chris

PS please to excuse the misuse of @Test here ... exploratory use only.

-- 
"What I don't understand is this ..."   Trevor Chaplin, /The Beiderbeck
Affair/

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20
6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)


Re: sixteenth anniversary

2017-11-21 Thread Jean-Marc Vanel
Congratulations Andy !

In addition to this nice doo-wop Platters - like ,
I propose this very well know song,
Sweet little Sixteen, by Chuck Berry,
filmed in 1958 at the Newport Jazz festival:
https://www.youtube.com/watch?v=Ud8peXosPLg

2017-11-20 17:23 GMT+01:00 Claude Warren :

> Or perhaps a song https://www.youtube.com/watch?v=yoOuTSBAWWA
>
>
> On Mon, Nov 20, 2017 at 4:22 PM, Claude Warren  wrote:
>
> > We need a cake :)
> >
> > On Mon, Nov 20, 2017 at 4:09 PM, Andy Seaborne  wrote:
> >
> >> Today, November 20th, 2017, is the sixteenth anniversary of the
> >> registration of Jena as a SourceForge project.
> >>
> >> https://sourceforge.net/projects/jena/
> >> 2001-11-20
> >>
> >> The entire code history up until the migration to git is available in
> >> Apache SVN - from CVS at SF, SVN at SF and SVN at Apache.
> >>
> >> Andy
> >>
> >
> >
> >
> > --
> > I like: Like Like - The likeliest place on the web
> > 
> > LinkedIn: http://www.linkedin.com/in/claudewarren
> >
>
>
>
> --
> I like: Like Like - The likeliest place on the web
> 
> LinkedIn: http://www.linkedin.com/in/claudewarren
>



-- 
Jean-Marc Vanel
http://www.semantic-forms.cc:9111/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me#subject

Déductions SARL - Consulting, services, training,
Rule-based programming, Semantic Web
+33 (0)6 89 16 29 52
Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui


Re: sixteenth anniversary

2017-11-21 Thread Osma Suominen

Like the one here?

http://englishcoffeedrinker.blogspot.fi/2009/07/realising-semantic-web.html

-Osma


ajs6f kirjoitti 20.11.2017 klo 18:26:

You mean a Layer Cake, right?

https://en.wikipedia.org/wiki/Semantic_Web_Stack

:)

ajs6f


On Nov 20, 2017, at 11:22 AM, Claude Warren  wrote:

We need a cake :)

On Mon, Nov 20, 2017 at 4:09 PM, Andy Seaborne  wrote:


Today, November 20th, 2017, is the sixteenth anniversary of the
registration of Jena as a SourceForge project.

https://sourceforge.net/projects/jena/
2001-11-20

The entire code history up until the migration to git is available in
Apache SVN - from CVS at SF, SVN at SF and SVN at Apache.

Andy





--
I like: Like Like - The likeliest place on the web

LinkedIn: http://www.linkedin.com/in/claudewarren





--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.suomi...@helsinki.fi
http://www.nationallibrary.fi