namespacelib
Utility library for the work with ontology namespaces.
Usage
The namespaces interfaces implemented in this package allow to get the URI as a class property. Implementation similar
to
rdflib, which has implemented popular ontologies, like prov:
import rdflib
print(rdflib.PROV.Agent)
# rdflib.URIRef('http://www.w3.org/ns/prov#Agent')
Note, that you may access these namespaces also through namespaclib as it just
"forwards" to rdflib.
Other namespaces, like M4I can be accessed like this:
import namespacelib
print(namespacelib.M4I.Tool)
# rdflib.URIRef('http://w3id.org/nfdi4ing/metadata4ing#Tool')
Very helpful for scientific data are the unit vocabulary qudt:
import namespacelib
print(namespacelib.QUDT_UNIT.M_PER_SEC)
# rdflib.URIRef('http://qudt.org/vocab/unit/M-PER-SEC')
print(namespacelib.QUDT_KIND.Velocity)
# rdflib.URIRef('http://qudt.org/vocab/quantitykind/Velocity')
An URI, that does not exist will raise an error (Other than rdflib, which can raise an
AttributeError but does not by default!:
import namespacelib
# will raise an AttributeError:
print(namespacelib.QUDT_UNIT.METER)
Available namespaces:
Limitations
Some vocabularies are not complete because names start with a digit, include a "#" or are called "yield", "True" or "False" (see schema.org, for example). These are not implemented in this package.
Metadata
Release files for namespacelib 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| namespacelib-0.4.0.tar.gz | 610.0 kB | Without provenance | Details for namespacelib-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| namespacelib-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for namespacelib-0.4.0-py3-none-any.whl |
Total release size: 1.3 MB
Release files / namespacelib-0.4.0.tar.gz
| Download URL | namespacelib-0.4.0.tar.gz |
|---|---|
| Size | 610.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01be0a6cfe0378bb47e833987bbb8e42164660f3770f632e5a351f10b27adfbb
|
|
BLAKE2b-256 checksum How to use checksums |
40c945538f86261cb02db668f2ac1f088b8dea22e03e30b62e8b63182fa31d15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.18
|
Release files / namespacelib-0.4.0-py3-none-any.whl
| Download URL | namespacelib-0.4.0-py3-none-any.whl |
|---|---|
| Size | 640.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e382a6cfb1dad4e367dbe5b7dd246c94bd3a8f98d02459a6e8daa986e6ad4209
|
|
BLAKE2b-256 checksum How to use checksums |
0c0f14584c9dde640941aeacafa2ba5683ea9e426b15664b4bbe9b433ded7fed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.18
|
Security for namespacelib 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.