Skip to content

Commit

Permalink
Minor Brick/REC fixes (#620)
Browse files Browse the repository at this point in the history
* fix typo

* make sure datatype property is correct
  • Loading branch information
gtfierro authored Feb 12, 2024
1 parent 8de3e96 commit 39d3207
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generate_brick.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def define_shape_property_property(shape_name, definitions, graph=G):
graph.add((ps, SH["in"], enumeration))
graph.add((ps, SH.minCount, Literal(1)))
Collection(graph, enumeration, map(Literal, prop_defn.pop("values")))
graph.add((prop_name, A, OWL.ObjectProperty))
graph.add((prop_name, A, OWL.DatatypeProperty))
else:
graph.add((prop_name, A, OWL.ObjectProperty))
add_relationships(ps, prop_defn, graph=graph)
Expand Down
7 changes: 5 additions & 2 deletions support/brickpatches.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ brick:Bench_Space
brick:Break_Room
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. For a replacement, consider rec:BasementLevel" ;
brick:isReplacedBy rec:BasementLevel ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. For a replacement, consider rec:StaffRoom" ;
brick:isReplacedBy rec:StaffRoom ;
.
brick:Breakroom
owl:deprecated "true"^^xsd:boolean ;
Expand Down Expand Up @@ -1128,6 +1128,9 @@ brick:feeds
brick:hasLocation
owl:equivalentProperty rec:locatedIn ;
.
brick:isLocationOf
owl:equivalentProperty rec:isLocationOf ;
.
brick:hasPart
owl:equivalentProperty rec:hasPart ;
.
Expand Down

0 comments on commit 39d3207

Please sign in to comment.