Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-27 Thread Sergey Malinin

On 06/26/2017 07:16 PM, Henrik Schmidt wrote:

Hi Adam,

can you explain why your solution was necessary and it did work without
it for me ?

Best

Henrik

Adam Sanchez schrieb am 23.06.2017 um 13:57:

Hi Hugh,

Finally I found my own solution. I am not very proud but it works at least.
Well, I have to compile RDF4J (https://github.com/eclipse/rdf4j)
including the libraries and the templates provided by Virtuoso
(http://vos.openlinksw.com/owiki/wiki/VOS/VirtSesame2HttpRepository)

The steps I followed are described here.

https://github.com/asanchez75/rdf4j/wiki

The changes were implemented in the branch virtuoso-7.2.4.2

Regards,

Adam

On Thu, Jun 22, 2017 at 11:15 AM, Adam Sanchez  wrote:

Hi Hugh,

I still got the same error I reported. Just in case, these are the
paths and the versions I am using.

- I have downloaded virt_rdf4j.jar from

https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/virt_rdf4j.jar

and the version is

java -jar 
/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-server/WEB-INF/lib/virt_rdf4j.jar

OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]

- I have downloaded virt_rdf4j.jar from

https://opldownload.s3.amazonaws.com/uda/virtuoso/jdbc/virtjdbc4_2.jar

and the version is

java -jar 
/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/WEB-INF/lib/virtjdbc4_2.jar

OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.2 [Build 3.100]

[Sergey]
1)
Your(from link above) virt_rdf4j.jar file is Ok,

If you need the latest sources(Gradle based) and jar, you could download it 
from:

http://opldownload.s3.amazonaws.com/uda/virtuoso/7.2/rdfproviders/rdf4j/2/rdf4j_provider.zip

2)
You must place virt_rdf4j.jar and virtjdbc4_2.jar to both web apps to 
rdf4j-server and to rdf4j-workbench

/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-server/WEB-INF/lib/virt_rdf4j.jar
/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-server/WEB-INF/lib/virtjdbc4_2.jar

/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/WEB-INF/lib/virt_rdf4j.jar
/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/WEB-INF/lib/virtjdbc4_2.jar

The virt_rdf4j.jar could not work without virtjdbc4_2.jar

I have tested Virtuoso RDF4J provider with my local Tomcat server and it works 
without Nullpointer exceptions.



- I have downloaded create.xsl from

https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create.xsl

and the path is

/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create.xsl

- I have downloaded create-virtuoso.xsl from

https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create-virtuoso.xsl

and the path is

/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create-virtuoso.xsl

- The java version is

java version "1.8.0_73", Java(TM) SE Runtime Environment (build
1.8.0_73-b02), Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02,
mixed mode)

- The Virtuoso version is

Virtuoso Version: 07.20.3217, Build: Jun 22 2017.
I compiled the branch stable/7, latest commit -> 0468195 Merge branch
'hotfix/7.2.4.2' into stable/7

- The RDF4J version is

RDF4J Workbench Version 2.1.6
(http://www.eclipse.org/downloads/download.php?file=/rdf4j/eclipse-rdf4j-2.1.6-sdk.zip)

- The operating system is

Operating System  Mac OS X 10.12.5 (x86_64)

- The error message that shows up after I try to create a repository
connected with Virtuoso is

=

HTTP Status 500 - java.lang.NullPointerException

type Exception report

message java.lang.NullPointerException

description The server encountered an internal error that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NullPointerException
org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:68)
org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.eclipse.rdf4j.workbench.proxy.CacheFilter.doFilter(CacheFilter.java:62)
org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:53)

root cause

java.lang.NullPointerException

Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-26 Thread Adam Sanchez
Hi Henrik,

Well, it seemed that RDF4J did not load the path to the template virtuoso.ttl.
Then, I added the file virtuoso.ttl to the directory

core/repository/api/src/main/resources/org/eclipse/rdf4j/repository/config/

and the Virtuoso drivers to the pom.xml file for the compilation process.

BTW, I modified the template because there was a bug (two semicolon
were missing)

Best,



On Mon, Jun 26, 2017 at 11:16 AM, Henrik Schmidt
 wrote:
> Hi Adam,
>
> can you explain why your solution was necessary and it did work without
> it for me ?
>
> Best
>
> Henrik
>
> Adam Sanchez schrieb am 23.06.2017 um 13:57:
>> Hi Hugh,
>>
>> Finally I found my own solution. I am not very proud but it works at least.
>> Well, I have to compile RDF4J (https://github.com/eclipse/rdf4j)
>> including the libraries and the templates provided by Virtuoso
>> (http://vos.openlinksw.com/owiki/wiki/VOS/VirtSesame2HttpRepository)
>>
>> The steps I followed are described here.
>>
>> https://github.com/asanchez75/rdf4j/wiki
>>
>> The changes were implemented in the branch virtuoso-7.2.4.2
>>
>> Regards,
>>
>> Adam
>>
>> On Thu, Jun 22, 2017 at 11:15 AM, Adam Sanchez  wrote:
>>> Hi Hugh,
>>>
>>> I still got the same error I reported. Just in case, these are the
>>> paths and the versions I am using.
>>>
>>> - I have downloaded virt_rdf4j.jar from
>>>
>>> https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/virt_rdf4j.jar
>>>
>>> and the version is
>>>
>>> java -jar 
>>> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-server/WEB-INF/lib/virt_rdf4j.jar
>>>
>>> OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]
>>>
>>> - I have downloaded virt_rdf4j.jar from
>>>
>>> https://opldownload.s3.amazonaws.com/uda/virtuoso/jdbc/virtjdbc4_2.jar
>>>
>>> and the version is
>>>
>>> java -jar 
>>> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/WEB-INF/lib/virtjdbc4_2.jar
>>>
>>> OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.2 [Build 3.100]
>>>
>>> - I have downloaded create.xsl from
>>>
>>> https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create.xsl
>>>
>>> and the path is
>>>
>>> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create.xsl
>>>
>>> - I have downloaded create-virtuoso.xsl from
>>>
>>> https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create-virtuoso.xsl
>>>
>>> and the path is
>>>
>>> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create-virtuoso.xsl
>>>
>>> - The java version is
>>>
>>> java version "1.8.0_73", Java(TM) SE Runtime Environment (build
>>> 1.8.0_73-b02), Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02,
>>> mixed mode)
>>>
>>> - The Virtuoso version is
>>>
>>> Virtuoso Version: 07.20.3217, Build: Jun 22 2017.
>>> I compiled the branch stable/7, latest commit -> 0468195 Merge branch
>>> 'hotfix/7.2.4.2' into stable/7
>>>
>>> - The RDF4J version is
>>>
>>> RDF4J Workbench Version 2.1.6
>>> (http://www.eclipse.org/downloads/download.php?file=/rdf4j/eclipse-rdf4j-2.1.6-sdk.zip)
>>>
>>> - The operating system is
>>>
>>> Operating System  Mac OS X 10.12.5 (x86_64)
>>>
>>> - The error message that shows up after I try to create a repository
>>> connected with Virtuoso is
>>>
>>> =
>>>
>>> HTTP Status 500 - java.lang.NullPointerException
>>>
>>> type Exception report
>>>
>>> message java.lang.NullPointerException
>>>
>>> description The server encountered an internal error that prevented it
>>> from fulfilling this request.
>>>
>>> exception
>>>
>>> javax.servlet.ServletException: java.lang.NullPointerException
>>> org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:68)
>>> org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
>>> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
>>> org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
>>> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
>>> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
>>> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
>>> org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
>>> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>> org.eclipse.rdf4j.workbench.proxy.CacheFilter.doFilter(CacheFilter.java:62)
>>> org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:53)
>>>
>>> root cause
>>>
>>> java.lang.NullPointerException
>>> org.eclipse.rdf4j.workbench.commands.CreateServlet.getConfigTemplate(CreateServlet.java:153)
>>> 

Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-26 Thread Henrik Schmidt
Hi Adam,

can you explain why your solution was necessary and it did work without
it for me ?

Best

Henrik

Adam Sanchez schrieb am 23.06.2017 um 13:57:
> Hi Hugh,
>
> Finally I found my own solution. I am not very proud but it works at least.
> Well, I have to compile RDF4J (https://github.com/eclipse/rdf4j)
> including the libraries and the templates provided by Virtuoso
> (http://vos.openlinksw.com/owiki/wiki/VOS/VirtSesame2HttpRepository)
>
> The steps I followed are described here.
>
> https://github.com/asanchez75/rdf4j/wiki
>
> The changes were implemented in the branch virtuoso-7.2.4.2
>
> Regards,
>
> Adam
>
> On Thu, Jun 22, 2017 at 11:15 AM, Adam Sanchez  wrote:
>> Hi Hugh,
>>
>> I still got the same error I reported. Just in case, these are the
>> paths and the versions I am using.
>>
>> - I have downloaded virt_rdf4j.jar from
>>
>> https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/virt_rdf4j.jar
>>
>> and the version is
>>
>> java -jar 
>> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-server/WEB-INF/lib/virt_rdf4j.jar
>>
>> OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]
>>
>> - I have downloaded virt_rdf4j.jar from
>>
>> https://opldownload.s3.amazonaws.com/uda/virtuoso/jdbc/virtjdbc4_2.jar
>>
>> and the version is
>>
>> java -jar 
>> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/WEB-INF/lib/virtjdbc4_2.jar
>>
>> OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.2 [Build 3.100]
>>
>> - I have downloaded create.xsl from
>>
>> https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create.xsl
>>
>> and the path is
>>
>> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create.xsl
>>
>> - I have downloaded create-virtuoso.xsl from
>>
>> https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create-virtuoso.xsl
>>
>> and the path is
>>
>> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create-virtuoso.xsl
>>
>> - The java version is
>>
>> java version "1.8.0_73", Java(TM) SE Runtime Environment (build
>> 1.8.0_73-b02), Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02,
>> mixed mode)
>>
>> - The Virtuoso version is
>>
>> Virtuoso Version: 07.20.3217, Build: Jun 22 2017.
>> I compiled the branch stable/7, latest commit -> 0468195 Merge branch
>> 'hotfix/7.2.4.2' into stable/7
>>
>> - The RDF4J version is
>>
>> RDF4J Workbench Version 2.1.6
>> (http://www.eclipse.org/downloads/download.php?file=/rdf4j/eclipse-rdf4j-2.1.6-sdk.zip)
>>
>> - The operating system is
>>
>> Operating System  Mac OS X 10.12.5 (x86_64)
>>
>> - The error message that shows up after I try to create a repository
>> connected with Virtuoso is
>>
>> =
>>
>> HTTP Status 500 - java.lang.NullPointerException
>>
>> type Exception report
>>
>> message java.lang.NullPointerException
>>
>> description The server encountered an internal error that prevented it
>> from fulfilling this request.
>>
>> exception
>>
>> javax.servlet.ServletException: java.lang.NullPointerException
>> org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:68)
>> org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
>> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
>> org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
>> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
>> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
>> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
>> org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
>> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> org.eclipse.rdf4j.workbench.proxy.CacheFilter.doFilter(CacheFilter.java:62)
>> org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:53)
>>
>> root cause
>>
>> java.lang.NullPointerException
>> org.eclipse.rdf4j.workbench.commands.CreateServlet.getConfigTemplate(CreateServlet.java:153)
>> org.eclipse.rdf4j.workbench.commands.CreateServlet.createRepositoryConfig(CreateServlet.java:120)
>> org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:65)
>> org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
>> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
>> org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
>> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
>> 

Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-23 Thread Adam Sanchez
Hi Hugh,

Finally I found my own solution. I am not very proud but it works at least.
Well, I have to compile RDF4J (https://github.com/eclipse/rdf4j)
including the libraries and the templates provided by Virtuoso
(http://vos.openlinksw.com/owiki/wiki/VOS/VirtSesame2HttpRepository)

The steps I followed are described here.

https://github.com/asanchez75/rdf4j/wiki

The changes were implemented in the branch virtuoso-7.2.4.2

Regards,

Adam

On Thu, Jun 22, 2017 at 11:15 AM, Adam Sanchez  wrote:
> Hi Hugh,
>
> I still got the same error I reported. Just in case, these are the
> paths and the versions I am using.
>
> - I have downloaded virt_rdf4j.jar from
>
> https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/virt_rdf4j.jar
>
> and the version is
>
> java -jar 
> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-server/WEB-INF/lib/virt_rdf4j.jar
>
> OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]
>
> - I have downloaded virt_rdf4j.jar from
>
> https://opldownload.s3.amazonaws.com/uda/virtuoso/jdbc/virtjdbc4_2.jar
>
> and the version is
>
> java -jar 
> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/WEB-INF/lib/virtjdbc4_2.jar
>
> OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.2 [Build 3.100]
>
> - I have downloaded create.xsl from
>
> https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create.xsl
>
> and the path is
>
> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create.xsl
>
> - I have downloaded create-virtuoso.xsl from
>
> https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create-virtuoso.xsl
>
> and the path is
>
> /usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create-virtuoso.xsl
>
> - The java version is
>
> java version "1.8.0_73", Java(TM) SE Runtime Environment (build
> 1.8.0_73-b02), Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02,
> mixed mode)
>
> - The Virtuoso version is
>
> Virtuoso Version: 07.20.3217, Build: Jun 22 2017.
> I compiled the branch stable/7, latest commit -> 0468195 Merge branch
> 'hotfix/7.2.4.2' into stable/7
>
> - The RDF4J version is
>
> RDF4J Workbench Version 2.1.6
> (http://www.eclipse.org/downloads/download.php?file=/rdf4j/eclipse-rdf4j-2.1.6-sdk.zip)
>
> - The operating system is
>
> Operating System  Mac OS X 10.12.5 (x86_64)
>
> - The error message that shows up after I try to create a repository
> connected with Virtuoso is
>
> =
>
> HTTP Status 500 - java.lang.NullPointerException
>
> type Exception report
>
> message java.lang.NullPointerException
>
> description The server encountered an internal error that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: java.lang.NullPointerException
> org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:68)
> org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
> org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> org.eclipse.rdf4j.workbench.proxy.CacheFilter.doFilter(CacheFilter.java:62)
> org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:53)
>
> root cause
>
> java.lang.NullPointerException
> org.eclipse.rdf4j.workbench.commands.CreateServlet.getConfigTemplate(CreateServlet.java:153)
> org.eclipse.rdf4j.workbench.commands.CreateServlet.createRepositoryConfig(CreateServlet.java:120)
> org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:65)
> org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
> org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)

Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-22 Thread Adam Sanchez
Hi Hugh,

I still got the same error I reported. Just in case, these are the
paths and the versions I am using.

- I have downloaded virt_rdf4j.jar from

https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/virt_rdf4j.jar

and the version is

java -jar 
/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-server/WEB-INF/lib/virt_rdf4j.jar

OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]

- I have downloaded virt_rdf4j.jar from

https://opldownload.s3.amazonaws.com/uda/virtuoso/jdbc/virtjdbc4_2.jar

and the version is

java -jar 
/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/WEB-INF/lib/virtjdbc4_2.jar

OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.2 [Build 3.100]

- I have downloaded create.xsl from

https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create.xsl

and the path is

/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create.xsl

- I have downloaded create-virtuoso.xsl from

https://opldownload.s3.amazonaws.com/uda/virtuoso/rdfproviders/rdf4j/2/create-virtuoso.xsl

and the path is

/usr/local/src/apache-tomcat-8.0.39/webapps/rdf4j-workbench/transformations/create-virtuoso.xsl

- The java version is

java version "1.8.0_73", Java(TM) SE Runtime Environment (build
1.8.0_73-b02), Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02,
mixed mode)

- The Virtuoso version is

Virtuoso Version: 07.20.3217, Build: Jun 22 2017.
I compiled the branch stable/7, latest commit -> 0468195 Merge branch
'hotfix/7.2.4.2' into stable/7

- The RDF4J version is

RDF4J Workbench Version 2.1.6
(http://www.eclipse.org/downloads/download.php?file=/rdf4j/eclipse-rdf4j-2.1.6-sdk.zip)

- The operating system is

Operating System  Mac OS X 10.12.5 (x86_64)

- The error message that shows up after I try to create a repository
connected with Virtuoso is

=

HTTP Status 500 - java.lang.NullPointerException

type Exception report

message java.lang.NullPointerException

description The server encountered an internal error that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NullPointerException
org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:68)
org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.eclipse.rdf4j.workbench.proxy.CacheFilter.doFilter(CacheFilter.java:62)
org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:53)

root cause

java.lang.NullPointerException
org.eclipse.rdf4j.workbench.commands.CreateServlet.getConfigTemplate(CreateServlet.java:153)
org.eclipse.rdf4j.workbench.commands.CreateServlet.createRepositoryConfig(CreateServlet.java:120)
org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:65)
org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.eclipse.rdf4j.workbench.proxy.CacheFilter.doFilter(CacheFilter.java:62)
org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:53)

note The full stack trace of the root cause is available in the Apache
Tomcat/8.0.39 logs.

=



Any idea?

Regards,

Adam

On Tue, Jun 20, 2017 at 2:00 PM, Adam Sanchez  wrote:
> Hi Hugh,
>
> I am using the latest versions:
>
>  java -jar virt_rdf4j.jar
> OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]
>
> java -jar 

Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-20 Thread Hugh Williams
Hi Adam,

What is the version of the Virtuoso RDF4J Provider and JDBC driver being used:

java -jar virt_rdf4j.jar
java -jar virt_jdbc4_2.jar

as the components where updated last week and work for Henrik, thus want to 
check you are using these ?

Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc.  //  http://www.openlinksw.com/
Weblog   -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter  -- http://twitter.com/OpenLink
Google+  -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers



> On 14 Jun 2017, at 21:03, Adam Sanchez  wrote:
> 
> Hi,
> 
> I wanted to add a virtuoso repository with the rdf4j workbench too but
> it did not work.
> 
> I'm running virtuoso 7.2.4 open source on Mac Sierra with rdf4j 2.2.1,
> tomcat 8.0.39 (the same versions that Henrik used) and java version
> 1.8.0_73.
> 
> I also followed the steps described in
> 
> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2HttpRepository
> 
> Virtuoso is listed as an available repository and after I provided the
> connection details (I accepted all values given by default), I got the
> following message:
> 
> ==
> 
> there are potentially incompatible characters in the repository id
> 
> ==
> 
> 
> 
> and next, I got the next error message
> 
> 
> 
> ==
> 
> HTTP Status 500 - java.lang.NullPointerException
> 
> type Exception report
> 
> message java.lang.NullPointerException
> 
> description The server encountered an internal error that prevented it
> from fulfilling this request.
> 
> exception
> 
> javax.servlet.ServletException: java.lang.NullPointerException
> org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:68)
> org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
> org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> org.eclipse.rdf4j.workbench.proxy.CacheFilter.doFilter(CacheFilter.java:62)
> org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:53)
> 
> root cause
> 
> java.lang.NullPointerException
> org.eclipse.rdf4j.workbench.commands.CreateServlet.getConfigTemplate(CreateServlet.java:153)
> org.eclipse.rdf4j.workbench.commands.CreateServlet.createRepositoryConfig(CreateServlet.java:120)
> org.eclipse.rdf4j.workbench.commands.CreateServlet.doPost(CreateServlet.java:65)
> org.eclipse.rdf4j.workbench.base.TransformationServlet.service(TransformationServlet.java:96)
> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
> org.eclipse.rdf4j.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:109)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:213)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.handleRequest(WorkbenchServlet.java:141)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:109)
> org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:120)
> org.eclipse.rdf4j.workbench.base.AbstractServlet.service(AbstractServlet.java:125)
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> org.eclipse.rdf4j.workbench.proxy.CacheFilter.doFilter(CacheFilter.java:62)
> org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:53)
> 
> note The full stack trace of the root cause is available in the Apache
> Tomcat/8.0.39 logs.
> 
> ==
> 
> However, when I used the RDF4J console it works.
> 
> ==
> 
> MacOSX:bin asanchez75$ sh console.sh
> 
> 21:56:29.482 [main] DEBUG o.e.r.c.platform.PlatformFactory - os.name = mac os 
> x
> 

Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-13 Thread Hugh Williams
Hi Henrik,

That is true, the sources are included as well such that gradle can recompile 
if need be, but a compiled jar is provided also, so this is not necessary 
unless the sources are changed. Anyway the source files have also been updated 
and the zip file replaced ...
 
Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc.  //  http://www.openlinksw.com/ 

Weblog   -- http://www.openlinksw.com/blogs/ 
LinkedIn -- http://www.linkedin.com/company/openlink-software/ 

Twitter  -- http://twitter.com/OpenLink 
Google+  -- http://plus.google.com/100570109519069333827/ 

Facebook -- http://www.facebook.com/OpenLinkSoftware 

Universal Data Access, Integration, and Management Technology Providers



> On 13 Jun 2017, at 16:28, Henrik Schmidt  > wrote:
> 
> Hi Hugh
> 
> are you sure  “rdf4j_virtuoso.zip” is not building it ?
> 
> I can delete  virt_rdf4j.jar and when executing
> 
> ./gradlew clean Build -x test
> 
> afterwards I get a new file with the current date stamp. 
> 
> The source is also included in the zip archive.
> 
> So either it is downloading it or building it or its magic :-)
> 
> Thanks for your support
> 
> Henrik
> 
> Hugh Williams schrieb am 13.06.2017 um 17:14:
>> Hi Henrik,
>> 
>> The “rdf4j_virtuoso.zip” does not compile the virt_rdf4j.jar provider which 
>> is included as a prebuilt jar ...
>> 
>> It appears the the Version 2.1.4 [Build 1.2] jar is problematic as when I 
>> used that one I got the error you report. There is a later build:
>> 
>> De-iMac:rdf4j hwilliams$ java -jar ./virt_rdf4j.jar 
>> OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]
>> De-iMac:rdf4j hwilliams$
>> 
>> which is in the git develop/7 branch, and testing with that build I can then 
>> create a New Repo and insert & query data ...
>> 
>> Thus I have updated the “rdf4j_virtuoso.zip” and the virt_rdf4j.jar provider 
>> available for online download and referenced in the documentation, which 
>> should now work whether the jar or zip is downloaded for use ...
>> 
>> Best Regards
>> Hugh Williams
>> Professional Services
>> OpenLink Software, Inc.  //  http://www.openlinksw.com/ 
>> 
>> Weblog   -- http://www.openlinksw.com/blogs/ 
>> 
>> LinkedIn -- http://www.linkedin.com/company/openlink-software/ 
>> 
>> Twitter  -- http://twitter.com/OpenLink 
>> Google+  -- http://plus.google.com/100570109519069333827/ 
>> 
>> Facebook -- http://www.facebook.com/OpenLinkSoftware 
>> 
>> Universal Data Access, Integration, and Management Technology Providers
>> 
>> 
>> 
>>> On 13 Jun 2017, at 13:48, Henrik Schmidt >> > wrote:
>>> 
>>> Hi,
>>> 
>>> I succeeded by replacing the virt_rdf4j.jar Version 2.1.4 [Build 1.2] which 
>>> I downloaded as explained here :
>>> 
>>> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2HttpRepository
>>>  
>>> 
>>> 
>>> I instead downloaded and extracted rdf4j_virtuoso.zip as explained here 
>>> 
>>> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2Provider
>>>  
>>> 
>>> 
>>> I compiled a new virt_rdf4j.jar after  adding the latest rdf4j 2.2.2 in 
>>> build.gradle
>>> 
>>> Though the result is an older build, reporting Version 2.0.1 [Build 1.1], 
>>> it is now matching and working with rdf4j 2.2.2 for me.
>>> 
>>> Perhaps it is a good idea to update rdf4j_virtuoso.zip with the latest 
>>> build so one can compile a version which is the latest on all ends.
>>> 
>>> Summary : virt_rdf4j.jar must be manually build to match a recent rdf4j.
>>> 
>>> Best,
>>> 
>>> Henrik
>>> 
>>> Hugh Williams schrieb am 13.06.2017 um 01:10:
 Hi Henrik,
 
 We had originally tested with rdf4j 2.0.1 which works. I have just updated 
 my local installation to use the rdf4j 2.2.1 war files and it continues to 
 work and I can create and query new repositories.
 
 Note I am using Tomcat 9 but would expect it to work with other versions  
 ...
 
 Best Regards
 Hugh Williams
 Professional Services
 OpenLink Software, Inc.  //  http://www.openlinksw.com/ 
 
 Weblog   -- http://www.openlinksw.com/blogs/ 
 
 

Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-13 Thread Henrik Schmidt
Hi Hugh

are you sure  “rdf4j_virtuoso.zip” is not building it ?

I can delete  virt_rdf4j.jar and when executing

./gradlew clean Build -x test

afterwards I get a new file with the current date stamp.

The source is also included in the zip archive.

So either it is downloading it or building it or its magic :-)

Thanks for your support

Henrik

Hugh Williams schrieb am 13.06.2017 um 17:14:
> Hi Henrik,
>
> The “rdf4j_virtuoso.zip” does not compile the virt_rdf4j.jar provider
> which is included as a prebuilt jar ...
>
> It appears the the Version 2.1.4 [Build 1.2] jar is problematic as
> when I used that one I got the error you report. There is a later build:
>
> De-iMac:rdf4j hwilliams$ java -jar ./virt_rdf4j.jar 
> OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]
> De-iMac:rdf4j hwilliams$
>
> which is in the git develop/7 branch, and testing with that build I
> can then create a New Repo and insert & query data ...
>
> Thus I have updated the “rdf4j_virtuoso.zip” and the virt_rdf4j.jar
> provider available for online download and referenced in the
> documentation, which should now work whether the jar or zip is
> downloaded for use ...
>
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software, Inc.  //  http://www.openlinksw.com/
> Weblog   -- http://www.openlinksw.com/blogs/
> LinkedIn -- http://www.linkedin.com/company/openlink-software/
> Twitter  -- http://twitter.com/OpenLink
> Google+  -- http://plus.google.com/100570109519069333827/
> Facebook -- http://www.facebook.com/OpenLinkSoftware
> Universal Data Access, Integration, and Management Technology Providers
>
>
>
>> On 13 Jun 2017, at 13:48, Henrik Schmidt > > wrote:
>>
>> Hi,
>>
>> I succeeded by replacing the virt_rdf4j.jar Version 2.1.4 [Build 1.2]
>> which I downloaded as explained here :
>>
>> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2HttpRepository
>>
>> I instead downloaded and extracted rdf4j_virtuoso.zip as explained here
>>
>> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2Provider
>>
>> I compiled a new virt_rdf4j.jar after  |adding the latest rdf4j 2.2.2
>> in build.gradle
>>
>> Though the result is an older build, reporting Version 2.0.1 [Build
>> 1.1], it is now matching and working with rdf4j 2.2.2 for me.
>>
>> Perhaps it is a good idea to update |rdf4j_virtuoso.zip with the
>> latest build so one can compile a version which is the latest on all
>> ends.
>>
>> Summary : virt_rdf4j.jar must be manually build to match a recent rdf4j.
>>
>> Best,
>>
>> Henrik
>>
>> Hugh Williams schrieb am 13.06.2017 um 01:10:
>>> Hi Henrik,
>>>
>>> We had originally tested with rdf4j 2.0.1 which works. I have just
>>> updated my local installation to use the rdf4j 2.2.1 war files and
>>> it continues to work and I can create and query new repositories.
>>>
>>> Note I am using Tomcat 9 but would expect it to work with other
>>> versions  ...
>>>
>>> Best Regards
>>> Hugh Williams
>>> Professional Services
>>> OpenLink Software, Inc.  //  http://www.openlinksw.com/
>>> Weblog   -- http://www.openlinksw.com/blogs/
>>> LinkedIn -- http://www.linkedin.com/company/openlink-software/
>>> Twitter  -- http://twitter.com/OpenLink
>>> Google+  -- http://plus.google.com/100570109519069333827/
>>> Facebook -- http://www.facebook.com/OpenLinkSoftware
>>> Universal Data Access, Integration, and Management Technology Providers
>>>
>>>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-13 Thread Hugh Williams
Hi Henrik,

The “rdf4j_virtuoso.zip” does not compile the virt_rdf4j.jar provider which is 
included as a prebuilt jar ...

It appears the the Version 2.1.4 [Build 1.2] jar is problematic as when I used 
that one I got the error you report. There is a later build:

De-iMac:rdf4j hwilliams$ java -jar ./virt_rdf4j.jar 
OpenLink Virtuoso(TM) Provider for RDF4J(TM) Version 2.1.4 [Build 1.3]
De-iMac:rdf4j hwilliams$

which is in the git develop/7 branch, and testing with that build I can then 
create a New Repo and insert & query data ...

Thus I have updated the “rdf4j_virtuoso.zip” and the virt_rdf4j.jar provider 
available for online download and referenced in the documentation, which should 
now work whether the jar or zip is downloaded for use ...

Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc.  //  http://www.openlinksw.com/
Weblog   -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter  -- http://twitter.com/OpenLink
Google+  -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers



> On 13 Jun 2017, at 13:48, Henrik Schmidt  wrote:
> 
> Hi,
> 
> I succeeded by replacing the virt_rdf4j.jar Version 2.1.4 [Build 1.2] which I 
> downloaded as explained here :
> 
> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2HttpRepository
>  
> 
> 
> I instead downloaded and extracted rdf4j_virtuoso.zip as explained here 
> 
> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2Provider
>  
> 
> 
> I compiled a new virt_rdf4j.jar after  adding the latest rdf4j 2.2.2 in 
> build.gradle
> 
> Though the result is an older build, reporting Version 2.0.1 [Build 1.1], it 
> is now matching and working with rdf4j 2.2.2 for me.
> 
> Perhaps it is a good idea to update rdf4j_virtuoso.zip with the latest build 
> so one can compile a version which is the latest on all ends.
> 
> Summary : virt_rdf4j.jar must be manually build to match a recent rdf4j.
> 
> Best,
> 
> Henrik
> 
> Hugh Williams schrieb am 13.06.2017 um 01:10:
>> Hi Henrik,
>> 
>> We had originally tested with rdf4j 2.0.1 which works. I have just updated 
>> my local installation to use the rdf4j 2.2.1 war files and it continues to 
>> work and I can create and query new repositories.
>> 
>> Note I am using Tomcat 9 but would expect it to work with other versions  ...
>> 
>> Best Regards
>> Hugh Williams
>> Professional Services
>> OpenLink Software, Inc.  //  http://www.openlinksw.com/ 
>> 
>> Weblog   -- http://www.openlinksw.com/blogs/ 
>> 
>> LinkedIn -- http://www.linkedin.com/company/openlink-software/ 
>> 
>> Twitter  -- http://twitter.com/OpenLink 
>> Google+  -- http://plus.google.com/100570109519069333827/ 
>> 
>> Facebook -- http://www.facebook.com/OpenLinkSoftware 
>> 
>> Universal Data Access, Integration, and Management Technology Providers
>> 
>> 
>> 
>>> On 6 Jun 2017, at 11:16, Henrik Schmidt >> > wrote:
>>> 
>>> Hi Hugh,
>>> 
>>> I followed the instructions.
>>> 
>>> Copied virt_rdf4j.jar and virtjdbc4_2.jar to the server and workbench 
>>> WEB-INF/lib folders and the two xsl files to the workbench tansitions 
>>> folder.
>>> 
>>> I could select virtuoso in the workbench as a new repository and did enter 
>>> just the name/description/login/password/graph data values and kept the 
>>> rest on default. When I press 'create' the error is happening.
>>> 
>>> I could make it work for virtuoso with the old sesame 4.1.2 
>>> workbench/server and using virt_sesame4.jar with virtjdbc4.jar and the 
>>> matching xsl files.
>>> 
>>> The trace log does not show anything so I guess the problem is before rdf4j 
>>> contacting the virtuoso server.
>>> 
>>> Did you test it successfully ?
>>> 
>>> Best,
>>> 
>>> Henrik
>>> 
>>> Hugh Williams schrieb am 05.06.2017 um 15:35:
 Hi Henrik,
 
 I presume you are following the instructions at:
 

 https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2HttpRepository
  
 
 
 When during the addtion of the repo is the error occurring ? I assume 
 Virtuoso is at least listed as an available repository and you have 
 provide connection details and if so please provide the details of the 
 connection params passed ? 

Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-13 Thread Henrik Schmidt
Hi,

I succeeded by replacing the virt_rdf4j.jar Version 2.1.4 [Build 1.2]
which I downloaded as explained here :

https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2HttpRepository

I instead downloaded and extracted rdf4j_virtuoso.zip as explained here

https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2Provider

I compiled a new virt_rdf4j.jar after  |adding the latest rdf4j 2.2.2 in
build.gradle

Though the result is an older build, reporting Version 2.0.1 [Build
1.1], it is now matching and working with rdf4j 2.2.2 for me.

Perhaps it is a good idea to update |rdf4j_virtuoso.zip with the latest
build so one can compile a version which is the latest on all ends.

Summary : virt_rdf4j.jar must be manually build to match a recent rdf4j.

Best,

Henrik

Hugh Williams schrieb am 13.06.2017 um 01:10:
> Hi Henrik,
>
> We had originally tested with rdf4j 2.0.1 which works. I have just
> updated my local installation to use the rdf4j 2.2.1 war files and it
> continues to work and I can create and query new repositories.
>
> Note I am using Tomcat 9 but would expect it to work with other
> versions  ...
>
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software, Inc.  //  http://www.openlinksw.com/
> Weblog   -- http://www.openlinksw.com/blogs/
> LinkedIn -- http://www.linkedin.com/company/openlink-software/
> Twitter  -- http://twitter.com/OpenLink
> Google+  -- http://plus.google.com/100570109519069333827/
> Facebook -- http://www.facebook.com/OpenLinkSoftware
> Universal Data Access, Integration, and Management Technology Providers
>
>
>
>> On 6 Jun 2017, at 11:16, Henrik Schmidt > > wrote:
>>
>> Hi Hugh,
>>
>> I followed the instructions.
>>
>> Copied virt_rdf4j.jar and virtjdbc4_2.jar to the server and workbench
>> WEB-INF/lib folders and the two xsl files to the workbench tansitions
>> folder.
>>
>> I could select virtuoso in the workbench as a new repository and did
>> enter just the name/description/login/password/graph data values and
>> kept the rest on default. When I press 'create' the error is happening.
>>
>> I could make it work for virtuoso with the old sesame 4.1.2
>> workbench/server and using virt_sesame4.jar with virtjdbc4.jar and
>> the matching xsl files.
>>
>> The trace log does not show anything so I guess the problem is before
>> rdf4j contacting the virtuoso server.
>>
>> Did you test it successfully ?
>>
>> Best,
>>
>> Henrik
>>
>> Hugh Williams schrieb am 05.06.2017 um 15:35:
>>> Hi Henrik,
>>>
>>> I presume you are following the instructions at:
>>>
>>> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2HttpRepository
>>>
>>> When during the addtion of the repo is the error occurring ? I
>>> assume Virtuoso is at least listed as an available repository and
>>> you have provide connection details and if so please provide the
>>> details of the connection params passed ? And it is at the point of
>>> added the Virtuoso repo that the error is occurring ?
>>>
>>> If the RDF4J HTTP server is attempting to connect to Virtuoso then
>>> you can enable tracing to the “virtuos.log” file using the
>>> trace_on() function as detailed at:
>>>
>>> http://docs.openlinksw.com/virtuoso/fn_trace_on/
>>>
>>> Which should provide details of what is occurring in Virtuoso and
>>> hence possible cause of the problem ...
>>>
>>> Best Regards
>>> Hugh Williams
>>> Professional Services
>>> OpenLink Software, Inc.  //  http://www.openlinksw.com/
>>> Weblog   -- http://www.openlinksw.com/blogs/
>>> LinkedIn -- http://www.linkedin.com/company/openlink-software/
>>> Twitter  -- http://twitter.com/OpenLink
>>> Google+  -- http://plus.google.com/100570109519069333827/
>>> Facebook -- http://www.facebook.com/OpenLinkSoftware
>>> Universal Data Access, Integration, and Management Technology Providers
>>>
>>>
>>>
 On 30 May 2017, at 08:34, Henrik Schmidt
 > wrote:

 I wanted to add a virtuoso repository with the rdf4j workbench and
 did the necessary setup according to the wiki.

 I'm running virtuoso 7.2.4 open source on ubuntu 16.04 LTS with
 rdf4j 2.2.1 and tomcat 8.0.39.

 Setup steps:

 1. Copy virtjdbc4_2.jar and virt_rdf4j.jar into the rdf4j server
 and workbench WEB-INF/lib folders.
 2. Copy create.xsl and create-virtuoso.xsl into the transformations
 folder of the workbench.

 When I try to add a virtuoso repo with the workbench I get an error
 (see below).

 I asked the rdf4j community but they replied :

 "It looks like it is having trouble with the Buffer fetch size
 value. Have you trying bring this up with the Virtuoso community?"

 So 'Im here now asking for help.

 24-May-2017 09:01:01.287 SCHWERWIEGEND [http-nio-8082-exec-4]
 org.apache.catalina.core.

Re: [Virtuoso-users] Adding virtuoso to rdf4j failed

2017-06-05 Thread Hugh Williams
Hi Henrik,

I presume you are following the instructions at:


https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSesame2HttpRepository
 


When during the addtion of the repo is the error occurring ? I assume Virtuoso 
is at least listed as an available repository and you have provide connection 
details and if so please provide the details of the connection params passed ? 
And it is at the point of added the Virtuoso repo that the error is occurring ?

If the RDF4J HTTP server is attempting to connect to Virtuoso then you can 
enable tracing to the “virtuos.log” file using the trace_on() function as 
detailed at:

http://docs.openlinksw.com/virtuoso/fn_trace_on/ 


Which should provide details of what is occurring in Virtuoso and hence 
possible cause of the problem ...

Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc.  //  http://www.openlinksw.com/
Weblog   -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter  -- http://twitter.com/OpenLink
Google+  -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers



> On 30 May 2017, at 08:34, Henrik Schmidt  wrote:
> 
> I wanted to add a virtuoso repository with the rdf4j workbench and did the 
> necessary setup according to the wiki. 
> I'm running virtuoso 7.2.4 open source on ubuntu 16.04 LTS with rdf4j 2.2.1 
> and tomcat 8.0.39.
> Setup steps:
> 1. Copy virtjdbc4_2.jar and virt_rdf4j.jar into the rdf4j server and 
> workbench WEB-INF/lib folders.
> 2. Copy create.xsl and create-virtuoso.xsl into the transformations folder of 
> the workbench.
> 
> When I try to add a virtuoso repo with the workbench I get an error (see 
> below).
> I asked the rdf4j community but they replied :
> 
> "It looks like it is having trouble with the Buffer fetch size value. Have 
> you trying bring this up with the Virtuoso community?"
> 
> So 'Im here now asking for help.
> 
> 24-May-2017 09:01:01.287 SCHWERWIEGEND [http-nio-8082-exec-4] 
> org.apache.catalina.core.
> 
> StandardWrapperValve.invoke Servlet.service() for servlet [workbench] in 
> context with path [/rdf4j-workbench] threw exception [org.eclipse.rdf4j.rio.R
> DFParseException: Expected ']', found 'v' [line 23]] with root cause
>  org.eclipse.rdf4j.rio.RDFParseException: Expected ']', found 'v' [line 23]
> at 
> org.eclipse.rdf4j.rio.helpers.RDFParserHelper.reportFatalError(RDFParserHelper.java:403)
> at 
> org.eclipse.rdf4j.rio.helpers.AbstractRDFParser.reportFatalError(AbstractRDFParser.java:677)
> at 
> org.eclipse.rdf4j.rio.turtle.TurtleParser.reportFatalError(TurtleParser.java:1306)
> at 
> org.eclipse.rdf4j.rio.turtle.TurtleParser.verifyCharacterOrFail(TurtleParser.java:1141)
> at 
> org.eclipse.rdf4j.rio.turtle.TurtleParser.parseImplicitBlank(TurtleParser.java:561)
> at 
> org.eclipse.rdf4j.rio.turtle.TurtleParser.parseObject(TurtleParser.java:473)
> at 
> org.eclipse.rdf4j.rio.turtle.TurtleParser.parseObjectList(TurtleParser.java:413)
> at 
> org.eclipse.rdf4j.rio.turtle.TurtleParser.parsePredicateObjectList(TurtleParser.java:408)
> at 
> org.eclipse.rdf4j.rio.turtle.TurtleParser.parseTriples(TurtleParser.java:355)
> at 
> org.eclipse.rdf4j.rio.turtle.TurtleParser.parseStatement(TurtleParser.java:240)
> at 
> org.eclipse.rdf4j.rio.turtle.TurtleParser.parse(TurtleParser.java:202)
> at 
> org.eclipse.rdf4j.workbench.commands.CreateServlet.updateRepositoryConfig(CreateServlet.java:132)
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! 
> http://sdm.link/slashdot___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users



smime.p7s
Description: S/MIME cryptographic signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users