Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
?node owl:onProperty ?p.
?node owl:hasValue ?o.
} UNION {
BIND (rdf:type as ?p)
?node owl:onProperty ?p.
?node owl:hasValue ?o.
}
}""")
self.tag_properties = defaultdict(list)
self.measures_properties = defaultdict(list)
self.grouped_properties = defaultdict(list)
for (classname, prop, obj, groupname) in res:
if prop == BRICK.hasTag:
self.tag_properties[classname].append(obj)
elif prop == BRICK.measures:
self.measures_properties[classname].append(obj)
self.grouped_properties[(classname, groupname)].append((prop, obj))