Created
July 20, 2023 16:57
-
-
Save TimidRobot/6b2e90618c196b446736965a138549b8 to your computer and use it in GitHub Desktop.
isReplacedBy.diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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