You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(12) |
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
|
Sep
(6) |
Oct
(1) |
Nov
(2) |
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(4) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
(9) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(1) |
Dec
|
2013 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(7) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
From: Axel P. <axe...@wu...> - 2014-09-12 19:19:53
|
(re-send ... I just realize this didn't go to our discussion-list, actually!) Hi all! We are happy to announce version 20140909 of the open source release of XSPARQL1.1! XSPARQL [1] combines SPARQL1.1 and XQuery in a common language and allows to write queries to transform data between XML and RDF in an intuitive manner. This new version allows also to query data stored in json format, relational databases, providing a unified language to integrate data given as XML, RDF, JSON, or RDB. XSPARQL is also an RDB2RDF processor [2], allowing to use your R2RML mappings. The main new feature in this release is full support of SPARQL 1.1, for a full list of improvements and added features, see the release notes at: http://sourceforge.net/projects/xsparql/files/xsparql/20140909/release-notes.txt The new implementation together with documentation is available on the Sourceforge project page [1]. You can either download a pre-compiled jar file from [1], or, alternatively, install instructions from source can be found at [3]. A recent tutorial containing many example queries can be found at [4]. Additionally, a web demo and some example are available on the XSPARQL homepage [5]. A summary of the features of XSPARQL will also be presented in this year’s ISWC Developer’s workshop in October [6]. We appreciate your feedback/comments/questions to be sent to our mailing list [7]. on behalf of the XSPARQL team, Axel Polleres [1] http://sourceforge.net/projects/xsparql/ [2] http://www.w3.org/TR/rdb2rdf-implementations/ [3] http://sourceforge.net/projects/xsparql/files/xsparql/20140909/xsparql-developer-manual.pdf [4] http://polleres.net/20140826xsparql_st.etienne/ [5] http://xsparql.deri.org/ [6] Daniele Dell'Aglio, Axel Polleres, Nuno Lopes, and Stefan Bischof. Querying the web of data with XSPARQL 1.1. In ISWC2014 Developers Workshop, October 2014. To appear. [7] xsp...@li... |
From: Axel P. <ax...@po...> - 2014-09-12 19:00:59
|
Something we could build into XSPARQL as a command line switch somehow? https://twitter.com/AxelPolleres/status/510501323301605376 i.e. resolving undeclared prefixes by using prefix:cc? added to my wishlist ;-) axel |
From: Axel P. <axe...@wu...> - 2014-09-09 15:34:51
|
(apologies, this is just a test, please ignore) |
From: Nuno L. <nun...@gm...> - 2014-08-13 09:07:04
|
On 11/08/14 09:48, Andrea Pozzetti wrote: > > In attachment the sql file with the db. > I use the last version of xsparql 0.5 > > thanks for the patience and the help Dear Andrea, Thanks for sending the file. In the XSPARQL version you are using (0.5) we are (still) requiring that the mapping file is explicitly typed: if you include the following triple it works: <emp> a rr:TriplesMap; I realise this is not a requirement of the R2RML specification and this has been fixed in the SVN repository and will be included in our upcoming release. In the meantime you can also compile XSPARQL from the sourceforge SVN. Hope this helps, let me know if you have any other problems. Best Regards -- Nuno Lopes |
From: Andrea P. <and...@po...> - 2014-08-11 08:48:36
|
hi, no problem for the delay :) In attachment the sql file with the db. I use the last version of xsparql 0.5 thanks for the patience and the help bye andrea Il 11/08/14 09:52, Nuno Lopes ha scritto: > Dear Andrea, > > Apologies for the late reply. Can you send me the contents of your > database and also confirm the XSPARQL version you are using? > > Best regards, > -- > Nuno Lopes > > On 08/08/14 13:06, Andrea Pozzetti wrote: >> i also tried to insert >> >> sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" >> default-storage_engine=innodb >> >> in the mysql config file but not work. >> >> can you help me? >> >> thanks >> >> >> Il 08/08/14 11:27, Nuno Lopes ha scritto: >>> Dear Andrea, >>> >>> Can you tell us which version of MySQL you are using? The problem >>> might be that the following options: >>> >>> sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" >>> default-storage_engine=innodb >>> >>> should not be provided to the XSPARQL configuration file but rather to >>> the MySQL configuration (tipically located at /etc/mysql/my.cnf on >>> linux machines). >>> >>> Best Regards, >>> -- >>> Nuno Lopes >>> >>> On 08/08/14 09:32, Andrea Pozzetti wrote: >>>> hi, >>>> >>>> i'm new of xsparql. i read all the documents in the website but i >>>> don't >>>> understand the exactly way to implement xsparql with R2RML >>>> >>>> i created a simple sql table call "EMP" with columns: "EMPNO", >>>> "ENAME", >>>> "DEPTNO". (like w3c R2RML example). >>>> >>>> i create the test.ttl file with the R2RML mapping (alway like w3c >>>> example) >>>> >>>> like this >>>> >>>> @prefix rr: <http://www.w3.org/ns/r2rml#>. >>>> @prefix ex: <http://example.com/ns#>. >>>> >>>> <emp> >>>> rr:logicalTable [ rr:tableName "EMP" ]; >>>> rr:subjectMap [ >>>> rr:template "http://data.example.com/employee/{EMPNO}"; >>>> rr:class ex:Employee; >>>> ]; >>>> rr:predicateObjectMap [ >>>> rr:predicate ex:name; >>>> rr:objectMap [ rr:column "ENAME" ]; >>>> ]. >>>> >>>> now from the command-line tool i run: >>>> >>>> java -jar cli-jar-with-dependencies.jar -r2rml test.ttl --dbConfig >>>> dbconfig.ini >>>> >>>> dbconfig.ini is the file with db connection information: >>>> >>>> sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" >>>> default-storage_engine=innodb >>>> dbDriver=mysql >>>> dbServer=127.0.0.1 >>>> dbName=test >>>> dbUser=root >>>> dbPasswd=test >>>> >>>> the output that i receive in the console is: >>>> >>>> @prefix ex: <http://example.com/> . >>>> @prefix foaf: <http://xmlns.com/foaf/0.1/> . >>>> @prefix test: <http://www.w3.org/2006/03/test-description#> . >>>> @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . >>>> @prefix rr: <http://www.w3.org/ns/r2rml#> . >>>> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . >>>> >>>> it returns only prefix. >>>> what's wrong? >>>> how can i obtain the output in a file? >>>> can someone provide me a working example? >>>> >>>> thanks a lot >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> >>>> Want fast and easy access to all the code in your enterprise? Index >>>> and >>>> search up to 200,000 lines of code with a free copy of Black Duck >>>> Code Sight - the same software that powers the world's largest code >>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>> http://p.sf.net/sfu/bds >>>> _______________________________________________ >>>> Xsparql-discussion mailing list >>>> Xsp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xsparql-discussion >>>> >> > > |
From: Nuno L. <nun...@gm...> - 2014-08-11 07:53:07
|
Dear Andrea, Apologies for the late reply. Can you send me the contents of your database and also confirm the XSPARQL version you are using? Best regards, -- Nuno Lopes On 08/08/14 13:06, Andrea Pozzetti wrote: > i also tried to insert > > sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" > default-storage_engine=innodb > > in the mysql config file but not work. > > can you help me? > > thanks > > > Il 08/08/14 11:27, Nuno Lopes ha scritto: >> Dear Andrea, >> >> Can you tell us which version of MySQL you are using? The problem >> might be that the following options: >> >> sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" >> default-storage_engine=innodb >> >> should not be provided to the XSPARQL configuration file but rather to >> the MySQL configuration (tipically located at /etc/mysql/my.cnf on >> linux machines). >> >> Best Regards, >> -- >> Nuno Lopes >> >> On 08/08/14 09:32, Andrea Pozzetti wrote: >>> hi, >>> >>> i'm new of xsparql. i read all the documents in the website but i don't >>> understand the exactly way to implement xsparql with R2RML >>> >>> i created a simple sql table call "EMP" with columns: "EMPNO", "ENAME", >>> "DEPTNO". (like w3c R2RML example). >>> >>> i create the test.ttl file with the R2RML mapping (alway like w3c >>> example) >>> >>> like this >>> >>> @prefix rr: <http://www.w3.org/ns/r2rml#>. >>> @prefix ex: <http://example.com/ns#>. >>> >>> <emp> >>> rr:logicalTable [ rr:tableName "EMP" ]; >>> rr:subjectMap [ >>> rr:template "http://data.example.com/employee/{EMPNO}"; >>> rr:class ex:Employee; >>> ]; >>> rr:predicateObjectMap [ >>> rr:predicate ex:name; >>> rr:objectMap [ rr:column "ENAME" ]; >>> ]. >>> >>> now from the command-line tool i run: >>> >>> java -jar cli-jar-with-dependencies.jar -r2rml test.ttl --dbConfig >>> dbconfig.ini >>> >>> dbconfig.ini is the file with db connection information: >>> >>> sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" >>> default-storage_engine=innodb >>> dbDriver=mysql >>> dbServer=127.0.0.1 >>> dbName=test >>> dbUser=root >>> dbPasswd=test >>> >>> the output that i receive in the console is: >>> >>> @prefix ex: <http://example.com/> . >>> @prefix foaf: <http://xmlns.com/foaf/0.1/> . >>> @prefix test: <http://www.w3.org/2006/03/test-description#> . >>> @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . >>> @prefix rr: <http://www.w3.org/ns/r2rml#> . >>> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . >>> >>> it returns only prefix. >>> what's wrong? >>> how can i obtain the output in a file? >>> can someone provide me a working example? >>> >>> thanks a lot >>> >>> ------------------------------------------------------------------------------ >>> >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> Xsparql-discussion mailing list >>> Xsp...@li... >>> https://lists.sourceforge.net/lists/listinfo/xsparql-discussion >>> > -- Nuno Lopes |
From: Andrea P. <and...@po...> - 2014-08-08 12:06:15
|
i also tried to insert sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" default-storage_engine=innodb in the mysql config file but not work. can you help me? thanks Il 08/08/14 11:27, Nuno Lopes ha scritto: > Dear Andrea, > > Can you tell us which version of MySQL you are using? The problem > might be that the following options: > > sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" > default-storage_engine=innodb > > should not be provided to the XSPARQL configuration file but rather to > the MySQL configuration (tipically located at /etc/mysql/my.cnf on > linux machines). > > Best Regards, > -- > Nuno Lopes > > On 08/08/14 09:32, Andrea Pozzetti wrote: >> hi, >> >> i'm new of xsparql. i read all the documents in the website but i don't >> understand the exactly way to implement xsparql with R2RML >> >> i created a simple sql table call "EMP" with columns: "EMPNO", "ENAME", >> "DEPTNO". (like w3c R2RML example). >> >> i create the test.ttl file with the R2RML mapping (alway like w3c >> example) >> >> like this >> >> @prefix rr: <http://www.w3.org/ns/r2rml#>. >> @prefix ex: <http://example.com/ns#>. >> >> <emp> >> rr:logicalTable [ rr:tableName "EMP" ]; >> rr:subjectMap [ >> rr:template "http://data.example.com/employee/{EMPNO}"; >> rr:class ex:Employee; >> ]; >> rr:predicateObjectMap [ >> rr:predicate ex:name; >> rr:objectMap [ rr:column "ENAME" ]; >> ]. >> >> now from the command-line tool i run: >> >> java -jar cli-jar-with-dependencies.jar -r2rml test.ttl --dbConfig >> dbconfig.ini >> >> dbconfig.ini is the file with db connection information: >> >> sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" >> default-storage_engine=innodb >> dbDriver=mysql >> dbServer=127.0.0.1 >> dbName=test >> dbUser=root >> dbPasswd=test >> >> the output that i receive in the console is: >> >> @prefix ex: <http://example.com/> . >> @prefix foaf: <http://xmlns.com/foaf/0.1/> . >> @prefix test: <http://www.w3.org/2006/03/test-description#> . >> @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . >> @prefix rr: <http://www.w3.org/ns/r2rml#> . >> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . >> >> it returns only prefix. >> what's wrong? >> how can i obtain the output in a file? >> can someone provide me a working example? >> >> thanks a lot >> >> ------------------------------------------------------------------------------ >> >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Xsparql-discussion mailing list >> Xsp...@li... >> https://lists.sourceforge.net/lists/listinfo/xsparql-discussion >> |
From: Andrea P. <and...@po...> - 2014-08-08 09:34:42
|
hi, mysql version is 5.6.19 Il 08/08/14 11:27, Nuno Lopes ha scritto: > Dear Andrea, > > Can you tell us which version of MySQL you are using? The problem > might be that the following options: > > sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" > default-storage_engine=innodb > > should not be provided to the XSPARQL configuration file but rather to > the MySQL configuration (tipically located at /etc/mysql/my.cnf on > linux machines). > > Best Regards, > -- > Nuno Lopes > > On 08/08/14 09:32, Andrea Pozzetti wrote: >> hi, >> >> i'm new of xsparql. i read all the documents in the website but i don't >> understand the exactly way to implement xsparql with R2RML >> >> i created a simple sql table call "EMP" with columns: "EMPNO", "ENAME", >> "DEPTNO". (like w3c R2RML example). >> >> i create the test.ttl file with the R2RML mapping (alway like w3c >> example) >> >> like this >> >> @prefix rr: <http://www.w3.org/ns/r2rml#>. >> @prefix ex: <http://example.com/ns#>. >> >> <emp> >> rr:logicalTable [ rr:tableName "EMP" ]; >> rr:subjectMap [ >> rr:template "http://data.example.com/employee/{EMPNO}"; >> rr:class ex:Employee; >> ]; >> rr:predicateObjectMap [ >> rr:predicate ex:name; >> rr:objectMap [ rr:column "ENAME" ]; >> ]. >> >> now from the command-line tool i run: >> >> java -jar cli-jar-with-dependencies.jar -r2rml test.ttl --dbConfig >> dbconfig.ini >> >> dbconfig.ini is the file with db connection information: >> >> sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" >> default-storage_engine=innodb >> dbDriver=mysql >> dbServer=127.0.0.1 >> dbName=test >> dbUser=root >> dbPasswd=test >> >> the output that i receive in the console is: >> >> @prefix ex: <http://example.com/> . >> @prefix foaf: <http://xmlns.com/foaf/0.1/> . >> @prefix test: <http://www.w3.org/2006/03/test-description#> . >> @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . >> @prefix rr: <http://www.w3.org/ns/r2rml#> . >> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . >> >> it returns only prefix. >> what's wrong? >> how can i obtain the output in a file? >> can someone provide me a working example? >> >> thanks a lot >> >> ------------------------------------------------------------------------------ >> >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Xsparql-discussion mailing list >> Xsp...@li... >> https://lists.sourceforge.net/lists/listinfo/xsparql-discussion >> |
From: Nuno L. <nun...@gm...> - 2014-08-08 09:27:35
|
Dear Andrea, Can you tell us which version of MySQL you are using? The problem might be that the following options: sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" default-storage_engine=innodb should not be provided to the XSPARQL configuration file but rather to the MySQL configuration (tipically located at /etc/mysql/my.cnf on linux machines). Best Regards, -- Nuno Lopes On 08/08/14 09:32, Andrea Pozzetti wrote: > hi, > > i'm new of xsparql. i read all the documents in the website but i don't > understand the exactly way to implement xsparql with R2RML > > i created a simple sql table call "EMP" with columns: "EMPNO", "ENAME", > "DEPTNO". (like w3c R2RML example). > > i create the test.ttl file with the R2RML mapping (alway like w3c example) > > like this > > @prefix rr: <http://www.w3.org/ns/r2rml#>. > @prefix ex: <http://example.com/ns#>. > > <emp> > rr:logicalTable [ rr:tableName "EMP" ]; > rr:subjectMap [ > rr:template "http://data.example.com/employee/{EMPNO}"; > rr:class ex:Employee; > ]; > rr:predicateObjectMap [ > rr:predicate ex:name; > rr:objectMap [ rr:column "ENAME" ]; > ]. > > now from the command-line tool i run: > > java -jar cli-jar-with-dependencies.jar -r2rml test.ttl --dbConfig > dbconfig.ini > > dbconfig.ini is the file with db connection information: > > sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" > default-storage_engine=innodb > dbDriver=mysql > dbServer=127.0.0.1 > dbName=test > dbUser=root > dbPasswd=test > > the output that i receive in the console is: > > @prefix ex: <http://example.com/> . > @prefix foaf: <http://xmlns.com/foaf/0.1/> . > @prefix test: <http://www.w3.org/2006/03/test-description#> . > @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . > @prefix rr: <http://www.w3.org/ns/r2rml#> . > @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . > > it returns only prefix. > what's wrong? > how can i obtain the output in a file? > can someone provide me a working example? > > thanks a lot > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Xsparql-discussion mailing list > Xsp...@li... > https://lists.sourceforge.net/lists/listinfo/xsparql-discussion > |
From: Andrea P. <and...@po...> - 2014-08-08 08:46:48
|
hi, i'm new of xsparql. i read all the documents in the website but i don't understand the exactly way to implement xsparql with R2RML i created a simple sql table call "EMP" with columns: "EMPNO", "ENAME", "DEPTNO". (like w3c R2RML example). i create the test.ttl file with the R2RML mapping (alway like w3c example) like this @prefix rr: <http://www.w3.org/ns/r2rml#>. @prefix ex: <http://example.com/ns#>. <emp> rr:logicalTable [ rr:tableName "EMP" ]; rr:subjectMap [ rr:template "http://data.example.com/employee/{EMPNO}"; rr:class ex:Employee; ]; rr:predicateObjectMap [ rr:predicate ex:name; rr:objectMap [ rr:column "ENAME" ]; ]. now from the command-line tool i run: java -jar cli-jar-with-dependencies.jar -r2rml test.ttl --dbConfig dbconfig.ini dbconfig.ini is the file with db connection information: sql-mode="PIPES_AS_CONCAT,ANSI_QUOTES" default-storage_engine=innodb dbDriver=mysql dbServer=127.0.0.1 dbName=test dbUser=root dbPasswd=test the output that i receive in the console is: @prefix ex: <http://example.com/> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix test: <http://www.w3.org/2006/03/test-description#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix rr: <http://www.w3.org/ns/r2rml#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . it returns only prefix. what's wrong? how can i obtain the output in a file? can someone provide me a working example? thanks a lot |
From: Guillermo E. <gui...@gm...> - 2014-01-21 12:15:02
|
That solved the SAXParseException problem. Thank you very much for the early reply. Best regards, Guillermo Esteban. On Tue, Jan 21, 2014 at 12:56 PM, Zachary Whitley < zac...@se...> wrote: > You need to convert your r2rml file from turtle to rdf/xml. Turtle is > probably ok but it's not recognizing the .r2rml extension and defaulting to > rdf/xml so you can probably just change the file extenstion from .r2rml to > .ttl as well. > > On Jan 21, 2014, at 6:25 AM, Guillermo Esteban wrote: > > Hi, > > I've been trying to use the XSPARQL's R2RML implementation with MySQL DB, > but I'm not so familiar with them since I'm getting some trouble. Running > > > java -jar cli-0.5-jar-with-dependencies.jar -r2rml test01.r2rml > --dbConfig db_config.txt > > throws the error > > > ERROR [main] (RDFDefaultErrorHandler.java:44) - > file:///C:/Users/blabla/Documents/test01.r2rml(line 1 column 1): Content > is not allowed in prolog. > > Error executing R2RML mapping: org.xml.sax.SAXParseException; systemId: > file:///C:/Users/gesteban/Documents/test01.r2rml; lineNumber: 1; > columnNumber: 1; Content is not allowed in prolog. > > The content of the r2rml file is: > > @prefix rr: <http://www.w3.org/ns/r2rml#>. > @prefix ex: <http://example.com/ns#>. > <#TriplesMap1> > rr:logicalTable [rr:tableName "mysql"."product" ]; > rr:subjectMap [ > rr:template "http://data.example.com/product({id}"; > rr:class ex:Product; > ]; > rr:predicateObjectMap [ > rr:predicate ex:name; > rr:objectMap [ rr:column "name" ]; > ]. > > I have configured MySQL as shown in <http://xsparql.deri.org/rdb2rdf>, > and the R2RML file is UTF-8 without BOM (as files with BOM seems to throw > this error). I'm don't know what to try next so I'm asking for someone else > experience using XSPARQL R2RML mapping. > > Thanks in advance. > > Best regards, > Guillermo Esteban. > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk_______________________________________________ > Xsparql-discussion mailing list > Xsp...@li... > https://lists.sourceforge.net/lists/listinfo/xsparql-discussion > > > |
From: Zachary W. <zac...@se...> - 2014-01-21 12:12:33
|
You need to convert your r2rml file from turtle to rdf/xml. Turtle is probably ok but it's not recognizing the .r2rml extension and defaulting to rdf/xml so you can probably just change the file extenstion from .r2rml to .ttl as well. On Jan 21, 2014, at 6:25 AM, Guillermo Esteban wrote: > Hi, > > I've been trying to use the XSPARQL's R2RML implementation with MySQL DB, but I'm not so familiar with them since I'm getting some trouble. Running > > > java -jar cli-0.5-jar-with-dependencies.jar -r2rml test01.r2rml --dbConfig db_config.txt > > throws the error > > > ERROR [main] (RDFDefaultErrorHandler.java:44) - file:///C:/Users/blabla/Documents/test01.r2rml(line 1 column 1): Content is not allowed in prolog. > > Error executing R2RML mapping: org.xml.sax.SAXParseException; systemId: file:///C:/Users/gesteban/Documents/test01.r2rml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. > > The content of the r2rml file is: > > @prefix rr: <http://www.w3.org/ns/r2rml#>. > @prefix ex: <http://example.com/ns#>. > <#TriplesMap1> > rr:logicalTable [rr:tableName "mysql"."product" ]; > rr:subjectMap [ > rr:template "http://data.example.com/product({id}"; > rr:class ex:Product; > ]; > rr:predicateObjectMap [ > rr:predicate ex:name; > rr:objectMap [ rr:column "name" ]; > ]. > > I have configured MySQL as shown in <http://xsparql.deri.org/rdb2rdf>, and the R2RML file is UTF-8 without BOM (as files with BOM seems to throw this error). I'm don't know what to try next so I'm asking for someone else experience using XSPARQL R2RML mapping. > > Thanks in advance. > > Best regards, > Guillermo Esteban. > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk_______________________________________________ > Xsparql-discussion mailing list > Xsp...@li... > https://lists.sourceforge.net/lists/listinfo/xsparql-discussion |
From: Guillermo E. <gui...@gm...> - 2014-01-21 11:26:06
|
Hi, I've been trying to use the XSPARQL's R2RML implementation with MySQL DB, but I'm not so familiar with them since I'm getting some trouble. Running > java -jar cli-0.5-jar-with-dependencies.jar -r2rml test01.r2rml --dbConfig db_config.txt throws the error > ERROR [main] (RDFDefaultErrorHandler.java:44) - file:///C:/Users/blabla/Documents/test01.r2rml(line 1 column 1): Content is not allowed in prolog. > Error executing R2RML mapping: org.xml.sax.SAXParseException; systemId: file:///C:/Users/gesteban/Documents/test01.r2rml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. The content of the r2rml file is: @prefix rr: <http://www.w3.org/ns/r2rml#>. @prefix ex: <http://example.com/ns#>. <#TriplesMap1> rr:logicalTable [rr:tableName "mysql"."product" ]; rr:subjectMap [ rr:template "http://data.example.com/product({id}"; rr:class ex:Product; ]; rr:predicateObjectMap [ rr:predicate ex:name; rr:objectMap [ rr:column "name" ]; ]. I have configured MySQL as shown in <http://xsparql.deri.org/rdb2rdf>, and the R2RML file is UTF-8 without BOM (as files with BOM seems to throw this error). I'm don't know what to try next so I'm asking for someone else experience using XSPARQL R2RML mapping. Thanks in advance. Best regards, Guillermo Esteban. |
From: Ali I. <ali...@de...> - 2013-01-14 16:36:39
|
Hi Dennis, Thanks for your message. Unfortunately, XSPARQL is its current state expects from its users to write XSPARQL queries from the scratch without any supporting tool. However, we are already in process of building a tool on top of XSPARQL which provides drag and drop GUI to automatically generate XSPARQL queries for any given schema or document. Currently, either you can write one separate XSPARQL query for lifting each type of input document (X3Dom) into its corresponding RDF document or you have to write one large XSPARQL query to cover all possible structures of input document using conditional operators. Thanks, Ali Intizar On 10/01/2013 09:00, Ludl, Dennis wrote: > > Hi, > > i've read a few papers about XSPARQL and it seems to be very promising > for my current task. I've created a ontology which describes X3Dom (3D > Models) structures. So for example I would have the following X3Dom > structure in XML: > > <Scene> > > <Viewpoint position='0 0 10' /> > > </Scene> > > The corresponding RDF file (In Turtle syntax) would look like this: > > @prefix datatype: <.../datatypes.rdf#>. > > @prefix x3dom: <.../nodes.rdf#>. > > _:b1 a x3dom:Scene; > > x3dom:children _:b2. > > _:b2 a x3dom:Viewpoint; > > x3dom:position _:b3. > > _:b3 a datatype:SFVec3f; > > datatype:_1 "0.0"^^<xsd:float>; > > datatype:_2 "0.0"^^<xsd:float>; > > datatype:_3 "10.0"^^<xsd:float>. > > I started to play around with XSPARQL and ended up with the following > lowering query: > > { for $Scene $Viewpoint from <scene_ttl_sample.ttl> > > where { $Scene x3dom:children $Viewpoint } > > order by $Scene > > return <Scene> > > { for $FName1 $FName2 $FName3 > > where { $Viewpoint x3dom:position $Position. > > $Position dt:_1 $FName1. > > $Position dt:_2 $FName2. > > $Position dt:_3 $FName3. } > > return <Viewpoint position="{$FName1} {$FName2} {$FName3}" /> > > } > > </Scene> > > } > > As well as a (incomplete) lifting query: > > let $doc := doc("scene.xml") > > let $scene := $doc//*[../Scene] > > return > > for $p in $scene > > let $id := count($p/preceding::*) + count($p/ancestor::*) > > construct { > > _:b{$id} a x3dom:Scene. > > { > > for $k in $p/Viewpoint > > let $kid := count($k/preceding::*) + count($k/ancestor::*) > > construct > > { > > _:b{$kid} a x3dom:Viewpoint. > > _:b{$id} x3dom:children _:b{$kid}. > > } > > } > > } > > They work as expected and deliver correct results. (I hope this is a > correct way to do the lowering/lifting -- maybe there are easier ways > to getting the task done?) > > This is just a simple example. I want to create an XSPARQL query, > which is able to lift every possible X3Dom document to a RDF file > based on my created ontology. There are a few hundred knots in the > ontology, so the XSPARQL queries would become rather big to cover all > possible structures of a X3Dom document. So I wanted to ask if you > could recommend some tools or techniques to simplify the process of > creating the XSPARQL queries. Most knots have a simple 1-to-1 > representation, just datatypes have own structures (See "position" in > the above example). > > Thank you, > > Dennis > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122712 > > > _______________________________________________ > Xsparql-discussion mailing list > Xsp...@li... > https://lists.sourceforge.net/lists/listinfo/xsparql-discussion -- Dr. Muhammad Intizar Ali Postdoctoral Researcher (URQ) Digital Enterprise Research Institute National University of Ireland, Galway. |
From: Ludl, D. <Den...@ea...> - 2013-01-10 09:14:07
|
Hi, i've read a few papers about XSPARQL and it seems to be very promising for my current task. I've created a ontology which describes X3Dom (3D Models) structures. So for example I would have the following X3Dom structure in XML: <Scene> <Viewpoint position='0 0 10' /> </Scene> The corresponding RDF file (In Turtle syntax) would look like this: @prefix datatype: <.../datatypes.rdf#>. @prefix x3dom: <.../nodes.rdf#>. _:b1 a x3dom:Scene; x3dom:children _:b2. _:b2 a x3dom:Viewpoint; x3dom:position _:b3. _:b3 a datatype:SFVec3f; datatype:_1 "0.0"^^<xsd:float>; datatype:_2 "0.0"^^<xsd:float>; datatype:_3 "10.0"^^<xsd:float>. I started to play around with XSPARQL and ended up with the following lowering query: { for $Scene $Viewpoint from <scene_ttl_sample.ttl> where { $Scene x3dom:children $Viewpoint } order by $Scene return <Scene> { for $FName1 $FName2 $FName3 where { $Viewpoint x3dom:position $Position. $Position dt:_1 $FName1. $Position dt:_2 $FName2. $Position dt:_3 $FName3. } return <Viewpoint position="{$FName1} {$FName2} {$FName3}" /> } </Scene> } As well as a (incomplete) lifting query: let $doc := doc("scene.xml") let $scene := $doc//*[../Scene] return for $p in $scene let $id := count($p/preceding::*) + count($p/ancestor::*) construct { _:b{$id} a x3dom:Scene. { for $k in $p/Viewpoint let $kid := count($k/preceding::*) + count($k/ancestor::*) construct { _:b{$kid} a x3dom:Viewpoint. _:b{$id} x3dom:children _:b{$kid}. } } } They work as expected and deliver correct results. (I hope this is a correct way to do the lowering/lifting - maybe there are easier ways to getting the task done?) This is just a simple example. I want to create an XSPARQL query, which is able to lift every possible X3Dom document to a RDF file based on my created ontology. There are a few hundred knots in the ontology, so the XSPARQL queries would become rather big to cover all possible structures of a X3Dom document. So I wanted to ask if you could recommend some tools or techniques to simplify the process of creating the XSPARQL queries. Most knots have a simple 1-to-1 representation, just datatypes have own structures (See "position" in the above example). Thank you, Dennis |
From: Nuno L. <nun...@de...> - 2012-11-02 17:36:27
|
[Apologies for cross-posting] Hi all! We are happy to announce version 0.5 of the open source release of our XSPARQL implementation! XSPARQL [1] allows to write queries to transform data between XML and RDF in an intuitive manner, combining SPARQL and XQuery in a common language. This new version also allows also to query data stored in relational databases, providing a unified language to integrate data given as XML, RDF, or RDB. XSPARQL is also an RDB2RDF processor [2], allowing to use your R2RML mappings. Some of the main improvements include: * XSPARQL now allows also to query data stored in relational databases; * new API providing a usable Java XSPARQL library; * querying JSON is supported via an internal mapping to XML; * Java artifacts as well as Javadocs are available from the Maven central repository, making usage of the XSPARQL library from Maven projects much easier. The new implementation together with documentation is available on the Sourceforge project page [3], install instructions, a web demo and some example queries can be found on the XSPARQL homepage. We appreciate your feedback/comments/questions to be sent to our mailing list [4]. on behalf of the XSPARQL team -- Nuno Lopes [1] http://xsparql.deri.org/ [2] http://www.w3.org/TR/rdb2rdf-implementations/ [3] http://sourceforge.net/projects/xsparql/ [4] xsp...@li... |
From: Nuno L. <nun...@de...> - 2012-10-30 17:32:08
|
Dear Alf, Thank you for the bug report. We will look into this issue for our next versions. If could also add this bug report to our tracker [1] it would be very helpful. Thank again, Best regards, -- Nuno Lopes [1] https://sourceforge.net/tracker/?group_id=243296&atid=1121918 On 24 Oct 2012, at 15:12, Alf Lervåg <alf...@bo...> wrote: > After many hours of debugging a concurrency issue, we ended up finding the culprit in the xsparql source: > > The XQueryEngine enum works as a singleton for xqueryEvaluatorSaxon, however this class is not thread safe. > > Our entrypoint was XSPARQLEvaluator which uses the XQueryEngine enum to get the actual evaluator. I've rewritten our code to go against the xqueryEvaluotorSaxon directly which fixes the issue for us. Unfortunately I don't have time to fix the problem in the xsparql code. > > Alf Lervåg | Konsulent > Bouvet ASA Sandakerveien 24C D11 Postboks 4430 Nydalen N-0403 Oslo > Tlf sentralbord: +47 23 40 60 00 | Faks: +47 23 40 60 01 | Mob: +47 95 75 18 75 > http://www.bouvet.no | alf...@bo...<mailto:alf...@bo...> > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________ > Xsparql-discussion mailing list > Xsp...@li... > https://lists.sourceforge.net/lists/listinfo/xsparql-discussion |
From: Nuno L. <nun...@de...> - 2012-10-30 17:27:22
|
Dear Bert, Sorry for the late reply. The XSPARQL grammar has problems dealing with some reserved keywords. We have the bug report and need to find a solution for this issue. In the meantime we are using the following workaround: let $groups := //*[name() = "group"] I hope this works for you while we fix the issue. Best regards, -- Nuno Lopes On 23 Oct 2012, at 16:58, Bert Spaan <be...@wa...> wrote: > Hello, > > We are using XSPARQL to translate XML files to RDF, but unfortunately XSPARQL seems to have problems processing and selecting <group> elements from those XML files. > > The following line in our XSPARQL script: > > let $groups := //group > > leads to the following error: > > no viable alternative at input 'group' > > When I search/replace 'group' by something else in both the XML source and SPARQL script, everything works as expected. > > Is there a way around this problem? > > Many thanks, > > Bert Spaan > Waag Society > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Xsparql-discussion mailing list > Xsp...@li... > https://lists.sourceforge.net/lists/listinfo/xsparql-discussion |
From: Alf L. <alf...@bo...> - 2012-10-24 14:26:05
|
After many hours of debugging a concurrency issue, we ended up finding the culprit in the xsparql source: The XQueryEngine enum works as a singleton for xqueryEvaluatorSaxon, however this class is not thread safe. Our entrypoint was XSPARQLEvaluator which uses the XQueryEngine enum to get the actual evaluator. I've rewritten our code to go against the xqueryEvaluotorSaxon directly which fixes the issue for us. Unfortunately I don't have time to fix the problem in the xsparql code. Alf Lervåg | Konsulent Bouvet ASA Sandakerveien 24C D11 Postboks 4430 Nydalen N-0403 Oslo Tlf sentralbord: +47 23 40 60 00 | Faks: +47 23 40 60 01 | Mob: +47 95 75 18 75 http://www.bouvet.no | alf...@bo...<mailto:alf...@bo...> |
From: Bert S. <be...@wa...> - 2012-10-23 17:15:04
|
Hello, We are using XSPARQL to translate XML files to RDF, but unfortunately XSPARQL seems to have problems processing and selecting <group> elements from those XML files. The following line in our XSPARQL script: let $groups := //group leads to the following error: no viable alternative at input 'group' When I search/replace 'group' by something else in both the XML source and SPARQL script, everything works as expected. Is there a way around this problem? Many thanks, Bert Spaan Waag Society |
From: Nuno L. <nun...@de...> - 2012-10-16 09:06:00
|
Dear Gerald, First of all thanks for your kind words and apologies for the late reply (I was away until now). So far it is not possible to do want you want, you'll have to keep writing the triples to the file. We've also had other requests for such a feature, we'll try to look into this for the next version of XSPARQL. best regards, -- Nuno Lopes On 1 Oct 2012, at 13:49, Gerald Stockinger wrote: > Hello, > > I just found out about XSPARQL and embedded in my Javacode to perform a > lowering from RDF to XML. > Generally I love the way XSPARQL works and think you guys have done a > wonderful job. > > > However I still have one little problem: Currently I first have to write > out my RDF - data to a file, so I can read it in again in my query. > So I wanted to ask, if it is possible to pass the data to SPARQL directly > in the Java - call? (I am using XSPARQL version 0.4) > > For example my query looks like this: > > declare namespace vCard="http://www.w3.org/2001/vcard-rdf/3.0#"; > > <relations> > { for $Person $Name from <vc1.rdf> > where { $Person vCard:FN $Name } > order by $Name > return <person name="{$Name}"> > </person> > } > </relations> > > > Is it possible to pass my triples directly to the XSPARQL - Evaluator (i.e. > instead of vc1.rdf as String - value or InputStream)? > If yes, what should the new query against it look like? > > Thanks for your help in advance! > > Kind regards, > Gerald Stockinger > ------------------------------------------------------------------------------ > Got visibility? > Most devs has no idea what their production app looks like. > Find out how fast your code is with AppDynamics Lite. > http://ad.doubleclick.net/clk;262219671;13503038;y? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html_______________________________________________ > Xsparql-discussion mailing list > Xsp...@li... > https://lists.sourceforge.net/lists/listinfo/xsparql-discussion |
From: Gerald S. <ger...@gm...> - 2012-10-01 12:49:36
|
Hello, I just found out about XSPARQL and embedded in my Javacode to perform a lowering from RDF to XML. Generally I love the way XSPARQL works and think you guys have done a wonderful job. However I still have one little problem: Currently I first have to write out my RDF - data to a file, so I can read it in again in my query. So I wanted to ask, if it is possible to pass the data to SPARQL directly in the Java - call? (I am using XSPARQL version 0.4) For example my query looks like this: declare namespace vCard="http://www.w3.org/2001/vcard-rdf/3.0#"; <relations> { for $Person $Name from <vc1.rdf> where { $Person vCard:FN $Name } order by $Name return <person name="{$Name}"> </person> } </relations> Is it possible to pass my triples directly to the XSPARQL - Evaluator (i.e. instead of vc1.rdf as String - value or InputStream)? If yes, what should the new query against it look like? Thanks for your help in advance! Kind regards, Gerald Stockinger |
From: Raoul W. <ra...@wa...> - 2012-06-21 08:59:53
|
Hi Nuno, Works like a charm now, thanks for your assistance :) Cheers, Raoul On 20/6/12 23:46 , Nuno Lopes wrote: > Hello Raoul, > > We have made quite a few changes to code and API. The class 'xqueryEvaluatorSaxon' is responsible for registering the saxon java functions and then executing the XQuery. Since you are also using another external function it should be sufficient to also register the XSPARQL functions: > > config.registerExtensionFunction(new sparqlQueryExtFunction()); > config.registerExtensionFunction(new turtleGraphToURIExtFunction()); > config.registerExtensionFunction(new createScopedDatasetExtFunction()); > config.registerExtensionFunction(new sparqlScopedDatasetExtFunction()); > config.registerExtensionFunction(new deleteScopedDatasetExtFunction()); > config.registerExtensionFunction(new scopedDatasetPopResultsExtFunction()); > config.registerExtensionFunction(new jsonDocExtFunction()); > > Alternatively you can look at using our 'xqueryEvaluatorSaxon' but so far we don't have a way to register additional functions. > > Hope this helps, regards, > -- > Nuno Lopes > > |
From: Nuno L. <nun...@de...> - 2012-06-20 21:46:38
|
Hello Raoul, We have made quite a few changes to code and API. The class 'xqueryEvaluatorSaxon' is responsible for registering the saxon java functions and then executing the XQuery. Since you are also using another external function it should be sufficient to also register the XSPARQL functions: config.registerExtensionFunction(new sparqlQueryExtFunction()); config.registerExtensionFunction(new turtleGraphToURIExtFunction()); config.registerExtensionFunction(new createScopedDatasetExtFunction()); config.registerExtensionFunction(new sparqlScopedDatasetExtFunction()); config.registerExtensionFunction(new deleteScopedDatasetExtFunction()); config.registerExtensionFunction(new scopedDatasetPopResultsExtFunction()); config.registerExtensionFunction(new jsonDocExtFunction()); Alternatively you can look at using our 'xqueryEvaluatorSaxon' but so far we don't have a way to register additional functions. Hope this helps, regards, -- Nuno Lopes On 20 Jun 2012, at 14:07, Raoul Wissink wrote: > Hi Nuno, > > The application is running on a JBoss AS 7.1 instance, and I run XSPARQL from a Java class (so not using the CLI). Here is an excerpt from my code: > > XSPARQLProcessor xp = new XSPARQLProcessor(); > String q = xp.process(xquery); > > Configuration config = new Configuration(); > > config.setNamePool(namepool); > config.registerExtensionFunction(new ParseDateTime()); > > Processor processor = new Processor(config); > XQueryCompiler compiler = processor.newXQueryCompiler(); > evaluator = compiler.compile(q).load(); > > ... > > evaluator.setSource(xmlStreamSource); > StringBuilder combined = new StringBuilder(); > > for (XdmItem item : evaluator) { > combined.append(item); > } > > And then I use the string value (which are, of course, turtle statements) from "combined" further up in my processing chain. If you'd like I can send the XSPARQL/XQUERY definition I use for parsing to your e-mail address. > > Cheers, > Raoul > > > On 20/6/12 14:42 , Nuno Lopes wrote: >> Hi Raoul, >> >> Can you tell me how you are running XSPARQL? >> >> Cheers, >> -- >> Nuno Lopes >> >> >> >> On 20 Jun 2012, at 12:29, Raoul Wissink wrote: >> >>> Hi Nuno, >>> >>> Thanks for the quick reply and fixing this issue :) However, when running the 0.4 snapshot, I get the following error: >>> >>> Error on line 71 of sparql-functions.xquery: >>> XPST0017: Cannot find a matching 1-argument function named {http://xsparql.deri.org/demo/xquery/xsparql.xquery}_sparqlQuery() >>> >>> Cheers, >>> Raoul >>> >>> >>> On 20/6/12 12:14 , Nuno Lopes wrote: >>>> Dear Raoul, >>>> >>>> We've made several changes to this function since the last release and the bug you mentioned is now fixed. I've merged our internal SVN repository with the SF one and we should make a release briefly. In the meantime you can download the sources and compile XSPARQL for the updated version. >>>> >>>> Best regards, >>>> -- >>>> Nuno Lopes >>>> >>>> >>>> >>>> On 20 Jun 2012, at 10:32, Raoul Wissink wrote: >>>> >>>>> I posted this issue as a bug a few months ago, but since I haven't received any response I'll repost it here. The problem is in XSPARQLs XQUERY function " _xsparql:_binding_term()" (which can be found here: http://xsparql.deri.org/demo/xquery/xsparql.xquery). If a string literal starts with alphabet characters immediately followed by a colon, it gets falsely interpreted as an URI. I've pasted the problematic part of the function below: >>>>> >>>>> typeswitch ($label) >>>>> case $e as xs:integer >>>>> return _xsparql:_binding("_sparql_result:literal", $label, $lang, $type) >>>>> case $e as xs:anyURI >>>>> return _xsparql:_binding("_sparql_result:uri", $label, "", "") >>>>> default >>>>> return if (fn:matches($label, "^_:[a-z]([a-z|0-9|_])*$", "i")) >>>>> then _xsparql:_binding("_sparql_result:bnode", fn:substring($label,3), "", "") >>>>> else if (fn:matches($Node, "^([a-zA-Z]*):(.+)$")) >>>>> then _xsparql:_binding("_sparql_result:uri", $label, "", "") >>>>> else _xsparql:_binding("_sparql_result:literal", $label, $lang, $type) >>>>> >>>>> >>>>> So, if the incoming value (assume it is something like "Foo: Hello World") is a xs:string it is not pickup up by the first part of the case statement (as only xs:integer and xs:anyUri are selected there), which causes it to "fall through" to the default clause. The it matches the "^([a-zA-Z]*):(.+)$" regex and thus will be marked as an URI, thus ending up unquoted in the turtle output. >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Live Security Virtual Conference >>>>> Exclusive live event will cover all the ways today's security and >>>>> threat landscape has changed and how IT managers can respond. Discussions >>>>> will include endpoint security, mobile security and the latest in malware >>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ >>>>> Xsparql-discussion mailing list >>>>> Xsp...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/xsparql-discussion > |
From: Raoul W. <ra...@wa...> - 2012-06-20 13:08:08
|
Hi Nuno, The application is running on a JBoss AS 7.1 instance, and I run XSPARQL from a Java class (so not using the CLI). Here is an excerpt from my code: XSPARQLProcessor xp = new XSPARQLProcessor(); String q = xp.process(xquery); Configuration config = new Configuration(); config.setNamePool(namepool); config.registerExtensionFunction(new ParseDateTime()); Processor processor = new Processor(config); XQueryCompiler compiler = processor.newXQueryCompiler(); evaluator = compiler.compile(q).load(); ... evaluator.setSource(xmlStreamSource); StringBuilder combined = new StringBuilder(); for (XdmItem item : evaluator) { combined.append(item); } And then I use the string value (which are, of course, turtle statements) from "combined" further up in my processing chain. If you'd like I can send the XSPARQL/XQUERY definition I use for parsing to your e-mail address. Cheers, Raoul On 20/6/12 14:42 , Nuno Lopes wrote: > Hi Raoul, > > Can you tell me how you are running XSPARQL? > > Cheers, > -- > Nuno Lopes > > > > On 20 Jun 2012, at 12:29, Raoul Wissink wrote: > >> Hi Nuno, >> >> Thanks for the quick reply and fixing this issue :) However, when running the 0.4 snapshot, I get the following error: >> >> Error on line 71 of sparql-functions.xquery: >> XPST0017: Cannot find a matching 1-argument function named {http://xsparql.deri.org/demo/xquery/xsparql.xquery}_sparqlQuery() >> >> Cheers, >> Raoul >> >> >> On 20/6/12 12:14 , Nuno Lopes wrote: >>> Dear Raoul, >>> >>> We've made several changes to this function since the last release and the bug you mentioned is now fixed. I've merged our internal SVN repository with the SF one and we should make a release briefly. In the meantime you can download the sources and compile XSPARQL for the updated version. >>> >>> Best regards, >>> -- >>> Nuno Lopes >>> >>> >>> >>> On 20 Jun 2012, at 10:32, Raoul Wissink wrote: >>> >>>> I posted this issue as a bug a few months ago, but since I haven't received any response I'll repost it here. The problem is in XSPARQLs XQUERY function " _xsparql:_binding_term()" (which can be found here: http://xsparql.deri.org/demo/xquery/xsparql.xquery). If a string literal starts with alphabet characters immediately followed by a colon, it gets falsely interpreted as an URI. I've pasted the problematic part of the function below: >>>> >>>> typeswitch ($label) >>>> case $e as xs:integer >>>> return _xsparql:_binding("_sparql_result:literal", $label, $lang, $type) >>>> case $e as xs:anyURI >>>> return _xsparql:_binding("_sparql_result:uri", $label, "", "") >>>> default >>>> return if (fn:matches($label, "^_:[a-z]([a-z|0-9|_])*$", "i")) >>>> then _xsparql:_binding("_sparql_result:bnode", fn:substring($label,3), "", "") >>>> else if (fn:matches($Node, "^([a-zA-Z]*):(.+)$")) >>>> then _xsparql:_binding("_sparql_result:uri", $label, "", "") >>>> else _xsparql:_binding("_sparql_result:literal", $label, $lang, $type) >>>> >>>> >>>> So, if the incoming value (assume it is something like "Foo: Hello World") is a xs:string it is not pickup up by the first part of the case statement (as only xs:integer and xs:anyUri are selected there), which causes it to "fall through" to the default clause. The it matches the "^([a-zA-Z]*):(.+)$" regex and thus will be marked as an URI, thus ending up unquoted in the turtle output. >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Live Security Virtual Conference >>>> Exclusive live event will cover all the ways today's security and >>>> threat landscape has changed and how IT managers can respond. Discussions >>>> will include endpoint security, mobile security and the latest in malware >>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ >>>> Xsparql-discussion mailing list >>>> Xsp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xsparql-discussion |