Skip to content

Commit

Permalink
Ignore duplicate rdf:ID with rdf4j + all triplestore impl are in runt…
Browse files Browse the repository at this point in the history
…ime scope in distribution-core (#1000)

Signed-off-by: RALAMBOTIANA MIORA <[email protected]>
  • Loading branch information
miovd authored and zamarrenolm committed Nov 6, 2019
1 parent 5021c81 commit 409ea3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions distribution-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -388,20 +388,21 @@
<groupId>${project.groupId}</groupId>
<artifactId>powsybl-triple-store-impl-rdf4j</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>powsybl-triple-store-impl-jena</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>powsybl-triple-store-impl-blazegraph</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
<scope>runtime</scope>
</dependency>

<!-- In provided scope, so that coverage is correctly reported but the jar is not packaged for distribution -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public void read(InputStream is, String baseName, String contextName) {
// This is the default behavior for other triple store engines (Jena)
conn.getParserConfig().addNonFatalError(XMLParserSettings.FAIL_ON_INVALID_NCNAME);
conn.getParserConfig().addNonFatalError(BasicParserSettings.VERIFY_URI_SYNTAX);
conn.getParserConfig().addNonFatalError(XMLParserSettings.FAIL_ON_DUPLICATE_RDF_ID);

Resource context = context(conn, contextName);
// We add data with a context (graph) to keep the source of information
Expand Down

0 comments on commit 409ea3e

Please sign in to comment.