Skip to content

Commit

Permalink
Add rdfs labels back (#666)
Browse files Browse the repository at this point in the history
* make sure to add labels to Brick subclasses

* fix RDFS labels test
  • Loading branch information
gtfierro authored Sep 20, 2024
1 parent 3937d88 commit 30d0690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ def test_rdfs_labels(brick_with_imports):

res = g.query(
""" SELECT ?class WHERE {
?class rdfs:subClassOf+ brick:Class .
?class rdfs:subClassOf+ brick:Entity .
FILTER NOT EXISTS { ?class rdfs:label ?label }
}"""
)
for row in res:
assert "Class %s has no label" % row[0]
assert False, "Class %s has no label" % row[0]

0 comments on commit 30d0690

Please sign in to comment.