Skip to main content

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('')

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

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page