Some decorators responsible for preparing and serializing RDF files.
Project description
Custom RDF Serializer Package - CRDF
1. Requirements
This module requires the rdflib package installation:
$ pip install rdflib
2. How to Install
For install this package execute the command in your environment:
$ pip install crdf-serializer
or:
$ pip install -i https://test.pypi.org/simple/ crdf-serializer
3. How to use
class Person: nick = FOAF.nick name = FOAF.name email = FOAF.mbox @ObjectDecorator(FOAF.Person, None) # blank node @BindDecorator("dc", DC) @BindDecorator("foaf", FOAF) def __init__ (self, name, nick, email): self.nick = Literal(nick, lang="foo") self.name = Literal (name) self.email = URIRef(email) p = Person ("Donna Fales","donna", "mailto:donna@example.org")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size crdf_serializer-0.0.1-py3-none-any.whl (5.6 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size crdf-serializer-0.0.1.tar.gz (2.9 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for crdf_serializer-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 797d9bdc71a29e036fe9030f1bd9f0630daff5b8345a5da772ab1afe738dfc3b |
|
MD5 | 2f5a7ef662e7e4e043beb99481a8bda0 |
|
BLAKE2-256 | 20f2c356a56fa0d2fb448a6ef1afe1bba29d909a52e880c5ad1b97a29e490e84 |