Skip to content

Commit

Permalink
Add a test for unsupported reflexive property in a chain
Browse files Browse the repository at this point in the history
This test is for future when the support will be extended. Currently, this case
is not completely supported, so the test is ignored.
  • Loading branch information
Peter Skocovsky committed Sep 8, 2017
1 parent a7ab54e commit ac46b20
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
public class OWLAPIDiffObjectPropertyClassificationCorrectnessTest
extends BaseObjectPropertyClassificationCorrectnessTest {

static final String[] IGNORE_LIST = {};
// @formatter:off
static final String[] IGNORE_LIST = {
ElkTestUtils.TEST_INPUT_LOCATION + "/classification/object_property/ChainWithReflexive.owl",
};
// @formatter:on

static {
Arrays.sort(IGNORE_LIST);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
public class ElkDiffObjectPropertyClassificationCorrectnessTest
extends BaseObjectPropertyClassificationCorrectnessTest {

static final String[] IGNORE_LIST = {};
// @formatter:off
static final String[] IGNORE_LIST = {
ElkTestUtils.TEST_INPUT_LOCATION + "/classification/object_property/ChainWithReflexive.owl",
};
// @formatter:on

static {
Arrays.sort(IGNORE_LIST);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Prefix(: = <http://example.org/>)
Prefix(rdf: = <http://www.w3.org/1999/02/22-rdf-syntax-ns#>)
Prefix(rdfs: = <http://www.w3.org/2000/01/rdf-schema#>)
Prefix(xsd: = <http://www.w3.org/2001/XMLSchema#>)
Prefix(owl: = <http://www.w3.org/2002/07/owl#>)
Ontology(
ReflexiveObjectProperty(:S)
SubObjectPropertyOf(ObjectPropertyChain(:R :S) :H)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Prefix(: = <http://example.org/>)
Prefix(rdf: = <http://www.w3.org/1999/02/22-rdf-syntax-ns#>)
Prefix(rdfs: = <http://www.w3.org/2000/01/rdf-schema#>)
Prefix(xsd: = <http://www.w3.org/2001/XMLSchema#>)
Prefix(owl: = <http://www.w3.org/2002/07/owl#>)
Ontology(
Declaration(ObjectProperty(:S))
SubObjectPropertyOf(:R :H)
)

0 comments on commit ac46b20

Please sign in to comment.