This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/101_shacl_w3c_tests
* develop: (80 commits) eclipse-rdf4j/rdf4j#1298 performance enhancement eclipse-rdf4j/rdf4j#1298 made rdfs reasoner configurable and added back tests eclipse-rdf4j/rdf4j#1298 minor cleanup eclipse-rdf4j/rdf4j#1298 fix for dedupes eclipse-rdf4j/rdf4j#1298 initial implementation of a rdfs reasoner for the shacl engine eclipse-rdf4j/rdf4j#1297 implement requiresEvaluation eclipse-rdf4j/rdf4j#1297 change SPARQL order to improve performance eclipse-rdf4j/rdf4j#1297 update benchmarks eclipse-rdf4j/rdf4j#1111 hot fix caching broken after merging sh:class and also fix some tests hotfix benchmark eclipse-rdf4j/rdf4j#1111 optimizations for empty sail and bulk joining for previousStateConnection eclipse-rdf4j/rdf4j#1111 removed use of getPreviousStateConnection because it doesn't handle deleted, will need to think of something smarter here. Also fixed printing of plans. eclipse-rdf4j/rdf4j#1111 fixes for blank node support Moved test from testsuite to storage Fixes #1293 Allow Regex calls with non Var arguments be replaced with other string functions eclipse-rdf4j/rdf4j#1111 optimized imports eclipse-rdf4j/rdf4j#1111 fixed last edge case eclipse-rdf4j/rdf4j#1111 better support for OR eclipse-rdf4j/rdf4j#1111 fixed sh:or by doing a two pass for sh:or. Not quite done yet though. documentation and code cleanup ... Signed-off-by: Håvard Ottestad <hmottestad@gmail.com> # Conflicts: # shacl/src/test/java/org/eclipse/rdf4j/sail/shacl/Utils.java
- Loading branch information
Showing
237 changed files
with
8,686 additions
and
1,068 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Solr managed schema - automatically generated - DO NOT EDIT --> | ||
<schema name="LuceneSail" version="1.5"> | ||
<uniqueKey>id</uniqueKey> | ||
<fieldType name="double" class="solr.TrieDoubleField" positionIncrementGap="0" precisionStep="0"/> | ||
<fieldType name="float" class="solr.TrieFloatField" positionIncrementGap="0" precisionStep="0"/> | ||
<fieldType name="geo" class="solr.SpatialRecursivePrefixTreeFieldType" indexed="true" stored="true" distanceUnits="kilometers"/> | ||
<fieldType name="int" class="solr.TrieIntField" positionIncrementGap="0" precisionStep="0"/> | ||
<fieldType name="long" class="solr.TrieLongField" positionIncrementGap="0" precisionStep="0"/> | ||
<fieldType name="string" class="solr.StrField" omitNorms="true" omitTermFreqAndPositions="true" indexed="true" stored="true" sortMissingLast="true" docValues="true" multiValued="false"/> | ||
<fieldType name="text" class="solr.TextField" omitNorms="false" omitTermFreqAndPositions="false" indexed="true" stored="true" positionIncrementGap="100" multiValued="true"> | ||
<analyzer type="index"> | ||
<tokenizer class="solr.StandardTokenizerFactory"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
</analyzer> | ||
<analyzer type="query"> | ||
<tokenizer class="solr.StandardTokenizerFactory"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
</analyzer> | ||
</fieldType> | ||
<field name="_version_" type="long" indexed="true" stored="true"/> | ||
<field name="context" type="string" default="null" required="false"/> | ||
<field name="http://www.opengis.net/ont/geosparql#asWKT" type="geo" required="false"/> | ||
<field name="id" type="string" required="true"/> | ||
<field name="text" type="text"/> | ||
<field name="uri" type="string" required="true"/> | ||
<dynamicField name="*" type="text"/> | ||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<schema name="LuceneSail" version="1.5"> | ||
<!-- Valid attributes for fields: name: mandatory - the name for the field | ||
type: mandatory - the name of a field type from the <types> fieldType section | ||
indexed: true if this field should be indexed (searchable or sortable) stored: | ||
true if this field should be retrievable docValues: true if this field should | ||
have doc values. Doc values are useful for faceting, grouping, sorting and | ||
function queries. Although not required, doc values will make the index faster | ||
to load, more NRT-friendly and more memory-efficient. They however come with | ||
some limitations: they are currently only supported by StrField, UUIDField | ||
and all Trie*Fields, and depending on the field type, they might require | ||
the field to be single-valued, be required or have a default value (check | ||
the documentation of the field type you're interested in for more information) | ||
multiValued: true if this field may contain multiple values per document | ||
omitNorms: (expert) set to true to omit the norms associated with this field | ||
(this disables length normalization and index-time boosting for the field, | ||
and saves some memory). Only full-text fields or fields that need an index-time | ||
boost need norms. Norms are omitted for primitive (non-analyzed) types by | ||
default. termVectors: [false] set to true to store the term vector for a | ||
given field. When using MoreLikeThis, fields used for similarity should be | ||
stored for best performance. termPositions: Store position information with | ||
the term vector. This will increase storage costs. termOffsets: Store offset | ||
information with the term vector. This will increase storage costs. required: | ||
The field is required. It will throw an error if the value does not exist | ||
default: a value that should be used if no value is specified when adding | ||
a document. --> | ||
|
||
<field name="_version_" type="long" indexed="true" stored="true" /> | ||
|
||
<field name="id" type="string" required="true" /> | ||
<field name="uri" type="string" required="true" /> | ||
<field name="context" type="string" required="false" | ||
default="null" /> | ||
<field name="text" type="text" /> | ||
<field name="http://www.opengis.net/ont/geosparql#asWKT" | ||
type="geo" required="false" /> | ||
|
||
<dynamicField name="*" type="text" /> | ||
|
||
<uniqueKey>id</uniqueKey> | ||
|
||
<fieldType name="string" class="solr.StrField" indexed="true" | ||
docValues="true" stored="true" multiValued="false" omitNorms="true" | ||
omitTermFreqAndPositions="true" sortMissingLast="true" /> | ||
|
||
<fieldType name="text" class="solr.TextField" indexed="true" | ||
stored="true" multiValued="true" omitNorms="false" | ||
omitTermFreqAndPositions="false" positionIncrementGap="100"> | ||
<analyzer type="index"> | ||
<tokenizer class="solr.StandardTokenizerFactory" /> | ||
<!-- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" | ||
/> --> | ||
<filter class="solr.LowerCaseFilterFactory" /> | ||
</analyzer> | ||
<analyzer type="query"> | ||
<tokenizer class="solr.StandardTokenizerFactory" /> | ||
<!-- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" | ||
/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" | ||
expand="true"/> --> | ||
<filter class="solr.LowerCaseFilterFactory" /> | ||
</analyzer> | ||
</fieldType> | ||
|
||
<fieldType name="geo" | ||
class="solr.SpatialRecursivePrefixTreeFieldType" indexed="true" | ||
stored="true" distanceUnits="kilometers" /> | ||
|
||
<!-- <fieldType name="geo_jts" class="solr.SpatialRecursivePrefixTreeFieldType" | ||
indexed="true" stored="true" distanceUnits="kilometers" spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFactory"/> --> | ||
|
||
<fieldType name="int" class="solr.TrieIntField" | ||
precisionStep="0" positionIncrementGap="0" /> | ||
<fieldType name="float" class="solr.TrieFloatField" | ||
precisionStep="0" positionIncrementGap="0" /> | ||
<fieldType name="long" class="solr.TrieLongField" | ||
precisionStep="0" positionIncrementGap="0" /> | ||
<fieldType name="double" class="solr.TrieDoubleField" | ||
precisionStep="0" positionIncrementGap="0" /> | ||
</schema> |
32 changes: 32 additions & 0 deletions
32
...src/test/java/org/eclipse/rdf4j/repository/sail/memory/ShaclRepositoryConnectionTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019 Eclipse RDF4J contributors. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Distribution License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.php. | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.rdf4j.repository.sail.memory; | ||
|
||
import org.eclipse.rdf4j.IsolationLevel; | ||
import org.eclipse.rdf4j.repository.Repository; | ||
import org.eclipse.rdf4j.repository.RepositoryConnectionTest; | ||
import org.eclipse.rdf4j.repository.RepositoryTest; | ||
import org.eclipse.rdf4j.repository.sail.SailRepository; | ||
import org.eclipse.rdf4j.sail.memory.MemoryStore; | ||
import org.eclipse.rdf4j.sail.shacl.ShaclSail; | ||
|
||
public class ShaclRepositoryConnectionTest extends RepositoryConnectionTest { | ||
|
||
public ShaclRepositoryConnectionTest(IsolationLevel level) { | ||
super(level); | ||
} | ||
|
||
@Override | ||
protected Repository createRepository() { | ||
ShaclSail shaclSail = new ShaclSail(new MemoryStore()); | ||
shaclSail.setIgnoreNoShapesLoadedException(true); | ||
return new SailRepository(shaclSail); | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
...nce/store/src/test/java/org/eclipse/rdf4j/repository/sail/memory/ShaclRepositoryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019 Eclipse RDF4J contributors. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Distribution License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.php. | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.rdf4j.repository.sail.memory; | ||
|
||
import org.eclipse.rdf4j.repository.Repository; | ||
import org.eclipse.rdf4j.repository.RepositoryTest; | ||
import org.eclipse.rdf4j.repository.sail.SailRepository; | ||
import org.eclipse.rdf4j.sail.memory.MemoryStore; | ||
import org.eclipse.rdf4j.sail.shacl.ShaclSail; | ||
|
||
public class ShaclRepositoryTest extends RepositoryTest { | ||
|
||
@Override | ||
protected Repository createRepository() { | ||
ShaclSail shaclSail = new ShaclSail(new MemoryStore()); | ||
shaclSail.setIgnoreNoShapesLoadedException(true); | ||
|
||
return new SailRepository(shaclSail); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
compliance/store/src/test/java/org/eclipse/rdf4j/sail/memory/ShaclConcurrencyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019 Eclipse RDF4J contributors. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Distribution License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.php. | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.rdf4j.sail.memory; | ||
|
||
import org.eclipse.rdf4j.sail.Sail; | ||
import org.eclipse.rdf4j.sail.SailConcurrencyTest; | ||
import org.eclipse.rdf4j.sail.SailException; | ||
import org.eclipse.rdf4j.sail.shacl.ShaclSail; | ||
import org.junit.Ignore; | ||
import org.junit.Test; | ||
|
||
public class ShaclConcurrencyTest extends SailConcurrencyTest { | ||
|
||
/*---------* | ||
* Methods * | ||
*---------*/ | ||
|
||
@Override | ||
protected Sail createSail() throws SailException { | ||
ShaclSail shaclSail = new ShaclSail(new MemoryStore()); | ||
shaclSail.setIgnoreNoShapesLoadedException(true); | ||
return shaclSail; | ||
} | ||
|
||
@Ignore | ||
@Test | ||
@Override | ||
public void testConcurrentAddLargeTxnRollback() throws Exception { | ||
// empty since this test is ignored | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
compliance/store/src/test/java/org/eclipse/rdf4j/sail/shacl/ShaclIsolationLevelTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019 Eclipse RDF4J contributors. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Distribution License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.php. | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.rdf4j.sail.shacl; | ||
|
||
import org.eclipse.rdf4j.sail.Sail; | ||
import org.eclipse.rdf4j.sail.SailException; | ||
import org.eclipse.rdf4j.sail.SailIsolationLevelTest; | ||
import org.eclipse.rdf4j.sail.memory.MemoryStore; | ||
|
||
public class ShaclIsolationLevelTest extends SailIsolationLevelTest { | ||
|
||
/*---------* | ||
* Methods * | ||
*---------*/ | ||
|
||
@Override | ||
protected Sail createSail() throws SailException { | ||
ShaclSail shaclSail = new ShaclSail(new MemoryStore()); | ||
shaclSail.setIgnoreNoShapesLoadedException(true); | ||
return shaclSail; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.