File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def generate_rdf_file(
88
88
)
89
89
)
90
90
)
91
- g .add ((license_uri , CC .jurisdiction , jurisdiction_uri ))
91
+ g .set ((license_uri , CC .jurisdiction , jurisdiction_uri ))
92
92
else :
93
93
logo_prefix = f"{ FOAF_LOGO_URL } { tool_obj .unit } /{ tool_obj .version } "
94
94
logo_url_large = f"{ logo_prefix } /{ LARGE_LOGO } "
@@ -167,6 +167,13 @@ def generate_rdf_file(
167
167
creator = URIRef (convert_https_to_http (tool_obj .creator_url ))
168
168
g .set ((license_uri , DCTERMS .creator , creator ))
169
169
170
+ # set dcterms:Jurisdiction
171
+ if tool_obj .jurisdiction_code :
172
+ data = Literal (
173
+ tool_obj .jurisdiction_code , datatype = DCTERMS .ISO3166
174
+ )
175
+ g .set ((license_uri , DCTERMS .Jurisdiction , data ))
176
+
170
177
# set dcterms:hasVersion
171
178
version = Literal (f"{ tool_obj .version } " )
172
179
g .set ((license_uri , DCTERMS .hasVersion , version ))
You can’t perform that action at this time.
0 commit comments