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.
Return to the FrontPage | Edit RDFAlchemyLongDescription | Title List
