@@ -54,6 +54,7 @@ def is_valid(self):
54
54
def exceptions (self ):
55
55
exceptions = []
56
56
exceptions = self .check_attr_uris (exceptions )
57
+ exceptions = self .check_attr_domain_range (exceptions )
57
58
return exceptions
58
59
59
60
def check_attr_uris (self , exceptions ):
@@ -74,6 +75,9 @@ def _check_uri(uri, exceptions):
74
75
exceptions = _check_uri (self .subject .unpack_uri (value ),
75
76
exceptions )
76
77
return exceptions
78
+
79
+ def check_attr_domain_range (self , exceptions ):
80
+ return exceptions
77
81
78
82
79
83
class ContainerValidation (SubjectValidation ):
@@ -112,15 +116,8 @@ def _check_ref(pdataset, parray, cdataset, carray):
112
116
exceptions .append (ValueError (msg ))
113
117
return exceptions
114
118
115
- # for dataset in ?????
116
- # for parent child relation in dataset
117
- # check the broadcasting relationship
118
- # parray = np.array((1,2))
119
- # carray = np.array((3,4))
120
-
121
119
for attr , value in self .subject .attrs .iteritems ():
122
120
# should support subtypes
123
- #import pdb; pdb.set_trace()
124
121
if attr == 'bald_._reference' :
125
122
# check if it's this type, otherwise exception)
126
123
# if isinstance(value,
@@ -139,5 +136,3 @@ class ValidationList(Validation):
139
136
pass
140
137
141
138
142
-
143
- #if __name__ == '__main__':
0 commit comments