What to use instead SimpleBulkUpdateHandler on jena 3?

2016-01-07 Thread Marco Tenti
Hi, very simple question, i must update a old project from jena 2 to jena 3, what it's the best otion to replace all the "BulkUpdateHandler" extensions to use the new Graph package in jena 3?

Re: Print a model without the option ^^http://www.w3.org/2001/XMLSchema#string

2015-03-05 Thread Marco Tenti
() ) ); } } else if (x.isURIResource()) { model2.add(stmt); } } model.close(); //write model2 2015-03-02 17:36 GMT+01:00 Andy Seaborne a...@apache.org: On 02/03/15 14:53, Marco Tenti wrote: Hi, everyone, my question today is a little

Print a model without the option ^^http://www.w3.org/2001/XMLSchema#string

2015-03-02 Thread Marco Tenti
Hi, everyone, my question today is a little strange but i need it for a integration with a exisisting project, there is a way to write a model without the option of the literal object? In the specific only for the string object. I solved for now with other java code (Scanner,read,replace,ecc.)

Re: Remov a Statement with specific predicate and object from a Model

2015-03-01 Thread Marco Tenti
;..), ResourceFactory.createRDFNode(some string)); On Fri, Feb 27, 2015 at 10:30 AM, Marco Tenti tentimar...@gmail.com wrote: Hi everyone is a stupid question and I am ashamed to ask , i just want to remove from a model all the statement with a specific predicate and object so i use this code: model.remove

Remov a Statement with specific predicate and object from a Model

2015-02-27 Thread Marco Tenti
Hi everyone is a stupid question and I am ashamed to ask , i just want to remove from a model all the statement with a specific predicate and object so i use this code: model.remove( null, ResourceFactory.createProperty( http://something#blabla; ),

EXCEPTION: org.apache.jena.atlas.AtlasException: java.nio.charset.MalformedInputException: Input length = 1, while i read a NT file

2015-02-20 Thread Marco Tenti
Hi everyone, i'm loading milions of triple split in hundred file in the same server very simple, but during the process i get sometime a fail to read some file with .nt extension. These file are generated with SILK ( http://wifo5-03.informatik.uni-mannheim.de/bizer/silk/) I get in the specific

Re: EXCEPTION: org.apache.jena.atlas.AtlasException: java.nio.charset.MalformedInputException: Input length = 1, while i read a NT file

2015-02-20 Thread Marco Tenti
K solved, ty Dave and Andy for the response and sorry i writing bad constructor because i was in a rush, anyway in the specific my problem was the iso-8859-1 encoding. Like Andy has said. TY all. 2015-02-20 10:35 GMT+01:00 Andy Seaborne a...@apache.org: On 20/02/15 08:01, Marco Tenti wrote

Suggestion for Read/Write very large file of triples

2015-02-17 Thread Marco Tenti
Hi, everyone, i have two file of triples (order of GB) , Jena provides many methods to read and write files triple, I'm wondering what is the best methods for read/write the models of jena, In terms of speed and memory. For example, in reading phase is better use

Re: Suggestion for Read/Write very large file of triples

2015-02-17 Thread Marco Tenti
15:18, Marco Tenti tentimar...@gmail.com wrote: Hi, everyone, i have two file of triples (order of GB) , Jena provides many methods to read and write files triple, I'm wondering what is the best methods for read/write the models of jena, In terms of speed and memory. For example, in reading

Get specific set of triple from a model with jena

2015-02-13 Thread Marco Tenti
Hi, everyone , i need to get specific set of triple from my model Jena, i have a very large set of triple and i want to check a specifc predicate for each Graph (with graph i mean a set o triple with the same subject), i show you a example: http://myOntology#A http://schema.org/name Name.

Tool Schemagen don't print the Properties and the individuals

2014-07-16 Thread Marco Tenti
Hello everyone, I want to create the Java class that corresponds to my ontology .owl, for this i'm going use the tool schemagen.bat with Windows, but in the java class there are only the Resource while the Property and the Individuals not. Any idea on how to solve the problem? here is the code

Re: Tool Schemagen don't print the Properties and the individuals

2014-07-16 Thread Marco Tenti
ty man is work!!! 2014-07-16 10:27 GMT+02:00 Dave Reynolds dave.e.reyno...@gmail.com: On 16/07/14 09:09, Marco Tenti wrote: Hello everyone, I want to create the Java class that corresponds to my ontology .owl, for this i'm going use the tool schemagen.bat with Windows, but in the java

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14:test (default-test) on project jena-jdbc-driver-tdb

2014-07-15 Thread Marco Tenti
*Hello everyone, my problem is this, I downloaded the source code of Jena Jena-2.11.2-source-release.zip and I'm going to build with maven and here is what I get*: [INFO] [INFO] Reactor Summary: [INFO] [INFO] Apache Jena -

Re: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14:test (default-test) on project jena-jdbc-driver-tdb

2014-07-15 Thread Marco Tenti
package -Pdev This will build the core modules and omit the less commonly used and slow to build modules (JDBC and SDB I believe) The other alternative is just to skip the tests if you are just wanting to build the artifacts e.g. mvn clean package -DskipTests Rob On 15/07/2014 10:20, Marco