Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

Download files

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

Files for crdf-serializer, version 0.0.1
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 hashes
Filename, size crdf-serializer-0.0.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page