Package org.aksw.gerbil.io.nif.utils
Class NIFSemanticsChecker
java.lang.Object
org.aksw.gerbil.io.nif.utils.NIFSemanticsChecker
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckDomainRange(Document document, Map<String, NIFSemanticsChecker.DomainRange> domainRangeDef) checkForMeaningsOfRelation(Document document) Checks whether all meanings that are used by the relations of this document are also available as annotations in the document.checkForMultipleRelations(Document document) Checks the given document for relations that are expressed multiple times.checkKBUniqueness(Document document) private static booleancheckType(Document document, Meaning meaning, Set<String> expectedTypes, Map<Meaning, Set<String>> typeCache) static StringgetNamespace(String uri)
-
Constructor Details
-
NIFSemanticsChecker
public NIFSemanticsChecker()
-
-
Method Details
-
checkForMultipleRelations
Checks the given document for relations that are expressed multiple times.- Parameters:
document-- Returns:
- the list of relations that are expressed multiple times
-
checkForMeaningsOfRelation
Checks whether all meanings that are used by the relations of this document are also available as annotations in the document.- Parameters:
document-- Returns:
- the list of
Meaninginstances that are missing.
-
checkKBUniqueness
-
getNamespace
-
checkDomainRange
-
checkType
-
findTypes
-