Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crdf-serializer-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crdf_serializer-0.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file crdf-serializer-0.0.1.tar.gz.

File metadata

  • Download URL: crdf-serializer-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for crdf-serializer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ee24e99b2a9c42cddb3a3c7413565113fb10e8c37210b48fca67d80174ef5bb3
MD5 e9f6d422152b11a1cfd5817d840e35cf
BLAKE2b-256 91b241e72a131bc86419391dae4e26509280d1e594d303cb40e3e2a5f64a611b

See more details on using hashes here.

File details

Details for the file crdf_serializer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: crdf_serializer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for crdf_serializer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 797d9bdc71a29e036fe9030f1bd9f0630daff5b8345a5da772ab1afe738dfc3b
MD5 2f5a7ef662e7e4e043beb99481a8bda0
BLAKE2b-256 20f2c356a56fa0d2fb448a6ef1afe1bba29d909a52e880c5ad1b97a29e490e84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page