Skip to content

Commit

Permalink
RDF: Fixes casing for OTRL & ODRL [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
hoijui committed Dec 31, 2022
1 parent f457e3e commit 23eb7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions krawl/serializer/rdf_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ def _make_OTRL(project):
if v is None:
return None
otrl_manifest = getattr(OTRL, v)
return otrl_manifest.replace('OTRL-', 'Otrl')
return otrl_manifest.replace('OTRL-', 'OTRL')

@staticmethod
def _make_ODRL(project):
v = project.documentation_readiness_level
if v is None:
return None
odrl_manifest = getattr(OTRL, v) # NOTE: Yes, ODRL is in the OTRL namespace too!
return odrl_manifest.replace('ODRL-', 'Odrl').replace('*', 'Star')
return odrl_manifest.replace('ODRL-', 'ODRL').replace('*', 'Star')

@staticmethod
def _titlecase(s):
Expand Down

0 comments on commit 23eb7de

Please sign in to comment.