Commit 4d81e53c authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Replace rule relation property with regulates / regulatedBy

parent 9f04798e
Pipeline #8739 canceled with stages
in 1 second
......@@ -139,8 +139,8 @@ abstract class RecordResource(institutionId: String) : IResource {
value.forEach {
blank.addProperty(RICO.title, it)
}
blank.addProperty(RICO.isRuleAssociatedWith, resource)
resource.addProperty(RICO.isAssociatedWithRule, blank)
blank.addProperty(RICO.regulates, resource)
resource.addProperty(RICO.regulatedBy, blank)
}
override fun langLiteral(text: String, language: String): Literal = model.createLiteral(text.trim(), language)
......
......@@ -81,9 +81,9 @@ object RICO {
val creationRelationHasTarget: Property = prop("creationRelationHasTarget")
val recordResourceOrInstantiationIsSourceOfCreationRelation: Property = prop("recordResourceOrInstantiationIsSourceOfCreationRelation")
val isRuleAssociatedWith: Property = prop("isRuleAssociatedWith")
val regulates: Property = prop("regulates")
val intellectualPropertyRightsHeldBy: Property = prop("intellectualPropertyRightsHeldBy")
val isAssociatedWithRule: Property = prop("isAssociatedWithRule")
val regulatedBy: Property = prop("regulatedBy")
private fun prop(name: String): Property {
return ResourceFactory.createProperty(NS.rico, name)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment