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

rdflib wrapper

Project description

RDFAlchemy is an abstraction layer, allowing python developers to use familiar dot notation to access and update an rdf triplestore.

  • RDFAlchemy is an ORM (Object Rdf Mapper) for graph data as:
  • SQLAlchemy is an ORM (Object Relational Mapper) for relalational databases

Allows access to:

Provides intuitive access to RDF values by accessing predicate values through dot notation.

ov = Namespace('http://owl.openvest.org/2005/10/Portfolio#')

class Company(rdfSubject):
  rdf_type = ov.Company
  symbol = rdfSingle(ov.symbol,'symbol')  #second param is optional
  cik = rdfSingle(ov.secCik)
  companyName = rdfSingle(ov.companyName)

c = Company.get_by(symbol = 'IBM')
print "%s has an SEC symbol of %s" % (c.companyName, c.cik)

Includes advanced descriptors for read/write access to lists and collections.

Project details


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