Skip to content

Commit

Permalink
rdf+bcp47+hxl (#41), skos (#38): --numerordinatio-cum-antecessoribus …
Browse files Browse the repository at this point in the history
…draft
  • Loading branch information
fititnt committed Jun 14, 2022
1 parent fb815b9 commit 5f0d308
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion officina/999999999/0/999999999_54872.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,20 @@ def make_args(self, hxl_output=True):
default=None
)

# numerordinatio
# cum (+ ablativus) https://en.wiktionary.org/wiki/cum#Latin
# antecessōribus, pl, m, ablativus, en.wiktionary.org/wiki/antecessor
parser.add_argument(
'--numerordinatio-cum-antecessoribus',
help='If RDF output should generate implicily Numerordinatio '
'antecessors',
metavar="cum_antecessoribus",
dest="cum_antecessoribus",
action='store_const',
const=True,
default=False
)

# archīvum, n, s, nominativus, https://en.wiktionary.org/wiki/archivum
# cōnfigūrātiōnī, f, s, dativus,
# https://en.wiktionary.org/wiki/configuratio#Latin
Expand Down Expand Up @@ -433,6 +447,7 @@ def execute_cli(self, pyargs, stdin=STDIN, stdout=sys.stdout,
meta = bcp47_rdf_extension_poc(
caput, data, objective_bag=pyargs.rdf_bag,
rdf_sine_spatia_nominalibus=rdf_sine_spatia_nominalibus,
cum_antecessoribus=pyargs.cum_antecessoribus,
est_meta=True)
print(json.dumps(
meta, sort_keys=False, ensure_ascii=False, cls=SetEncoder))
Expand Down Expand Up @@ -460,7 +475,8 @@ def execute_cli(self, pyargs, stdin=STDIN, stdout=sys.stdout,
# print('')
meta = bcp47_rdf_extension_poc(
caput, data, objective_bag=pyargs.rdf_bag,
rdf_sine_spatia_nominalibus=pyargs.rdf_sine_spatia_nominalibus)
rdf_sine_spatia_nominalibus=pyargs.rdf_sine_spatia_nominalibus,
cum_antecessoribus=pyargs.cum_antecessoribus)
# print(json.dumps(meta, sort_keys=True ,ensure_ascii=False))
# return self.EXIT_OK

Expand Down
2 changes: 1 addition & 1 deletion officina/999999999/0/L999999999_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,6 @@ def _expand_hxl_ad_rdf():

'skos:collection': 'skos:Collection',
'skos:concept': 'skos:Concept',
'skos:concept': 'skos:Concept',
'skos:conceptscheme': 'skos:ConceptScheme',
'skos:orderedcollection': 'skos:OrderedCollection',
'skos:altlabel': 'skos:altLabel',
Expand Down Expand Up @@ -2072,6 +2071,7 @@ def bcp47_rdf_extension_poc(
_auxiliary_bags: List[str] = None,
namespaces: List[dict] = None,
rdf_sine_spatia_nominalibus: List = None,
cum_antecessoribus: bool = False,
est_meta: bool = False,
strictum: bool = True
) -> dict:
Expand Down

0 comments on commit 5f0d308

Please sign in to comment.