RDFLib / rdflib

RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
https://rdflib.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.15k stars 555 forks source link

regenerate _DOAP.py #2811

Closed raboof closed 1 month ago

raboof commented 3 months ago

The definition at http://usefulinc.com/ns/doap has been updated since the previous generation (for example it now contains security-contact and security-policy properties).

Unfortunately when I python3 ./rdflib/tools/defined_namespace_creator.py doap.xml http://usefulinc.com/ns/doap# DOAP the generated result does not look correct to me - but perhaps I'm misusing it?

nicholascar commented 2 months ago

Were you getting a shell error, perhaps:

no matches found: http://usefulinc.com/ns/doap#

try quoting (") the IRI:

python3 ./rdflib/tools/defined_namespace_creator.py doap.xml "http://usefulinc.com/ns/doap#" DOAP

If you regenerate DOAP, please inspect it and fix any small issues - inconsistent languages etc. - by hand and consider submitting a PR to update the version in RDFLib

raboof commented 2 months ago

please inspect it and fix any small issues - inconsistent languages etc. - by hand

Gotcha. It seems the definition has descriptions in several languages. Should all languages be kept or just the English one?

raboof commented 2 months ago

consider submitting a PR to update the version in RDFLib

2869