-
Notifications
You must be signed in to change notification settings - Fork 0
/
Consistency.py
12 lines (11 loc) · 924 Bytes
/
Consistency.py
1
2
3
4
5
6
7
8
9
10
11
12
class Consistency:
def __init__(self,deprecated,disjointClasses,triplesMP,triplesMC,oHijacking,undefinedClass,undefinedProperties):
self.deprecated = deprecated
self.disjointClasses = disjointClasses
self.triplesMP = triplesMP
self.triplesMC = triplesMC
self.oHijacking = oHijacking
self.undefinedClass = undefinedClass
self.undefinedProperties = undefinedProperties
def getConsistency(self):
return f"-Consistency\n Deprecated classes/properties used:{self.deprecated}\n Entities as member of disjoint class:{self.disjointClasses}\n Triples with misplaced property problem:{self.triplesMP}\n Triples with misplaced class problem:{self.triplesMC}\n Ontology Hijacking problem:{self.oHijacking}\n Undefined class used without declaration:{self.undefinedClass}\n Undefined properties used without declaration:{self.undefinedProperties}\n"