Class NIFSemanticsChecker

java.lang.Object
org.aksw.gerbil.io.nif.utils.NIFSemanticsChecker

public class NIFSemanticsChecker extends Object
  • Constructor Details

    • NIFSemanticsChecker

      public NIFSemanticsChecker()
  • Method Details

    • checkForMultipleRelations

      public static List<Relation> checkForMultipleRelations(Document document)
      Checks the given document for relations that are expressed multiple times.
      Parameters:
      document -
      Returns:
      the list of relations that are expressed multiple times
    • checkForMeaningsOfRelation

      public 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.
      Parameters:
      document -
      Returns:
      the list of Meaning instances that are missing.
    • checkKBUniqueness

      public static List<Meaning> checkKBUniqueness(Document document)
    • getNamespace

      public static String getNamespace(String uri)
    • checkDomainRange

      public static List<Relation> checkDomainRange(Document document, Map<String,NIFSemanticsChecker.DomainRange> domainRangeDef)
    • checkType

      private static boolean checkType(Document document, Meaning meaning, Set<String> expectedTypes, Map<Meaning,Set<String>> typeCache)
    • findTypes

      private static Set<String> findTypes(Document document, Meaning meaning)