public class NIFSemanticsChecker extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NIFSemanticsChecker.DomainRange |
| Constructor and Description |
|---|
NIFSemanticsChecker() |
| Modifier and Type | Method and Description |
|---|---|
static List<Relation> |
checkDomainRange(Document document,
Map<String,NIFSemanticsChecker.DomainRange> domainRangeDef) |
static List<Meaning> |
checkForMeaningsOfRelation(Document document)
Checks whether all meanings that are used by the relations of this document
are also available as annotations in the document.
|
static List<Relation> |
checkForMultipleRelations(Document document)
Checks the given document for relations that are expressed multiple times.
|
static List<Meaning> |
checkKBUniqueness(Document document) |
private static boolean |
checkType(Document document,
Meaning meaning,
Set<String> expectedTypes,
Map<Meaning,Set<String>> typeCache) |
private static Set<String> |
findTypes(Document document,
Meaning meaning) |
static String |
getNamespace(String uri) |
public static List<Relation> checkForMultipleRelations(Document document)
document - public static List<Meaning> checkForMeaningsOfRelation(Document document)
document - Meaning instances that are missing.public static List<Relation> checkDomainRange(Document document, Map<String,NIFSemanticsChecker.DomainRange> domainRangeDef)
private static boolean checkType(Document document, Meaning meaning, Set<String> expectedTypes, Map<Meaning,Set<String>> typeCache)
Copyright © 2018. All rights reserved.