Skip to content

Commit eb46b25

Browse files
committed
make proper use of the term definition IS_REVERSE_PROPERTY_FLAG
1 parent 683aefe commit eb46b25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: jsonld-cpp/Context.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ bool Context::isReverseProperty(const std::string &property) const {
1212
if (td.is_null()) {
1313
return false;
1414
}
15-
return td.contains(JsonLdConsts::REVERSE) && td.at(JsonLdConsts::REVERSE);
15+
return td.contains(JsonLdConsts::IS_REVERSE_PROPERTY_FLAG) && td.at(JsonLdConsts::IS_REVERSE_PROPERTY_FLAG);
1616
}
1717

1818
json Context::getTermDefinition(const std::string & key) const {

Diff for: jsonld-cpp/ContextProcessor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ namespace {
281281

282282
// 13.6)
283283
// Set the reverse property flag of definition to true.
284-
definition[JsonLdConsts::REVERSE] = true;
284+
definition[JsonLdConsts::IS_REVERSE_PROPERTY_FLAG] = true;
285285

286286
// 13.7)
287287
// Set the term definition of term in active context to definition and the value

0 commit comments

Comments
 (0)