Skip to content

Instantly share code, notes, and snippets.

@TimidRobot
Created July 20, 2023 16:57
Show Gist options
  • Select an option

  • Save TimidRobot/6b2e90618c196b446736965a138549b8 to your computer and use it in GitHub Desktop.

Select an option

Save TimidRobot/6b2e90618c196b446736965a138549b8 to your computer and use it in GitHub Desktop.
isReplacedBy.diff
index 5ba4cfb..67a5df8 100644
--- legal_tools/rdf_generator.py
+++ legal_tools/rdf_generator.py
@@ -126,6 +126,16 @@ def generate_rdf_triples(category, unit, version, jurisdiction=None):
)
)
+ if tool_obj.is_replaced_by:
+ g.add(
+ (
+ license_uri,
+ DCTERMS.isReplacedBy,
+ URIRef(convert_https_to_http(tool_obj.is_replaced_by.base_url)),
+ )
+ )
+
+
# Adding properties
# Permits
if tool_obj.permits_derivative_works:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment