Skip to content

Commit

Permalink
999999999_54872.py (#38): documenting rapper (raptor2-utils) to conve…
Browse files Browse the repository at this point in the history
…rt RDF/SKOS .ttl to other formats
  • Loading branch information
fititnt committed May 24, 2022
1 parent 0831e38 commit dbdcc9c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions officinam/999999999/0/999999999_54872.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@
> 999999/0/ibge_un_adm2.no1.skos.ttl
cat 999999/0/ibge_un_adm2.tm.hxl.csv | \
{0} --objectivum-formato=application/n-triples \
{0} --objectivum-formato=application/x-turtle \
--archivum-configurationi-ex-fonti=999999999/0/999999999_268072.meta.yml \
--praefixum-configurationi-ex-fonti=methodus,ibge_un_adm2 \
> 999999/0/ibge_un_adm2.no1.n3
| rapper --quiet --input=turtle --output=ntriples /dev/fd/0
rapper --quiet --input=turtle --output=ntriples \
999999/0/ibge_un_adm2.no1.skos.ttl > 999999/0/ibge_un_adm2.no1.skos.nt
------------------------------------------------------------------------------
EXEMPLŌRUM GRATIĀ
Expand Down Expand Up @@ -422,6 +425,9 @@ def actio(self):
if self.pyargs.objectivum_formato == 'application/x-turtle':
return self.hxltm_ad_rdf.resultatum_ad_turtle()
if self.pyargs.objectivum_formato == 'application/n-triples':
raise NotImplementedError(
'Use turtle output and pipe to rapper '
'(raptor2-utils) or similar')
return self.hxltm_ad_rdf.resultatum_ad_ntriples()
# print('oi actio')
# numerordinatio_neo_separatum
Expand Down

0 comments on commit dbdcc9c

Please sign in to comment.