Fix inverse constraint test for Wikidata extension.
The inverse constraint on the part of property was removed.
This commit is contained in:
parent
52a2ec05e1
commit
844e288955
@ -43,6 +43,8 @@ public class WikidataConstraintFetcherTests {
|
|||||||
private PropertyIdValue partOf;
|
private PropertyIdValue partOf;
|
||||||
private PropertyIdValue referenceURL;
|
private PropertyIdValue referenceURL;
|
||||||
private PropertyIdValue reasonForDeprecation;
|
private PropertyIdValue reasonForDeprecation;
|
||||||
|
private PropertyIdValue mother;
|
||||||
|
private PropertyIdValue child;
|
||||||
|
|
||||||
public WikidataConstraintFetcherTests() {
|
public WikidataConstraintFetcherTests() {
|
||||||
fetcher = new WikidataConstraintFetcher();
|
fetcher = new WikidataConstraintFetcher();
|
||||||
@ -55,6 +57,8 @@ public class WikidataConstraintFetcherTests {
|
|||||||
partOf = Datamodel.makeWikidataPropertyIdValue("P361");
|
partOf = Datamodel.makeWikidataPropertyIdValue("P361");
|
||||||
referenceURL = Datamodel.makeWikidataPropertyIdValue("P854");
|
referenceURL = Datamodel.makeWikidataPropertyIdValue("P854");
|
||||||
reasonForDeprecation = Datamodel.makeWikidataPropertyIdValue("P2241");
|
reasonForDeprecation = Datamodel.makeWikidataPropertyIdValue("P2241");
|
||||||
|
mother = Datamodel.makeWikidataPropertyIdValue("P25");
|
||||||
|
child = Datamodel.makeWikidataPropertyIdValue("P40");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -70,7 +74,7 @@ public class WikidataConstraintFetcherTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetInverseConstraint() {
|
public void testGetInverseConstraint() {
|
||||||
Assert.assertEquals(fetcher.getInversePid(partOf), hasPart);
|
Assert.assertEquals(fetcher.getInversePid(mother), child);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user