1024programmer Java djangonic way to handle rdf? -djangonicwaytodealwithrdf?

djangonic way to handle rdf? -djangonicwaytodealwithrdf?

I was looking for an RDF project for django and I cant find any active.

I’m looking for an RDF project for django and I can’t find any active ones.

This seems to be a good one http://code.google.com/p/django-rdf, but the last commit was in 2008, (4 years ago). The group in google-groups seems to be abandoned . Last no-spam post was in 2008. Therefore it has no support for new django versions.

This seems to be a good http://code.google.com/p/django-rdf, but the last commit was in 2008, ( 4 years ago). Groups in Google groups seem to be abandoned. The last spam-free post was in 2008. Therefore it does not support new django versions.

Is there any library or some prebuilt open source app to easily expose rdf data?

Is there any library or some pre-built open source application that can expose rdf data easily?

Maybe is easy to solve, like writing a view and returning something using https://github.com/RDFLib/rdflib in one or two lines of code, but I can’t figure it out how to do it.. .

Maybe it’s easy to solve, like writing a view and using https://github.com/RDFLib/rdflib to return something in one or two lines of code, But I can’t figure out how to do this…

The idea using RDFlib would be to take a django object or collection of objects and transform it to rdf in some way, maybe using an rdf parser.

The idea of ​​using RDFlib is to take a django object or collection of objects and convert it to rdf somehow, probably using an rdf parser.

I thought I could give html responses if the client request “accept:text/html”, and RDF if the user requested the same page using a html accept header with rdf+xml or rdf+turtle (and it could exist an app that handles that for me)

If the client requests “accept:text/html”, I think I can give the html response if the user uses rdf+xml or rdf+turtle The html accept header of the same page request can be given as RDF (and it may exist for the application to handle that for me)

2 solutions

#1


4

From what little I’ve read of RDF you are probably going to have to do manual work to get meaningful RDF statements from Django models since it’s not a simple data representation format like JSON, it is trying to encode semantic meaning.

From what I just read about RDF you might have to do some manual work to get meaningful RDF statements out of Django models since it’s not like JSON Such a simple data representation format, it attempts to encode semantics.

That said, have a look at django-rdflib:
https://github.com/odeoncg/django-rdflib

That said, take a look at django-rdflib: https://github.com/odeoncg/django-rdflib

There doesn’t seem to be any documentation (and it seems to have been built for a specific app) but the author has posted here about a manage.py syncvb command that generates an RDF graph from existing Django models:
https://groups.google.com/d/msg/django-rdf/14WVK7t88PE/ktAKJo-aCfUJ

There doesn’t seem to be any documentation (it seems to be built for a specific application) but the author has posted here a manage.py syncvb command that takes the Django model generates RDF graph: https://groups.google.com/d/msg/django-rdf/14WVK7t88PE/ktAKJo-aCfUJ

Not sure exactly what views django-rdflib provides, but if it can make an RDFlib graph for you then you can probably use the serialization plugins provided by RDFlib to output rdf+xml or whatever from your own view.

Not sure what views django-rdflib provides, but if it can create RDFlib graphs for you, then you can use the serialization plugin provided by RDFlib to output the rdf + xml or anything in your own view.

#2


1

http://code.google.com/p/djubby/

SURF is useful as a RDF->object mapper (or RDFAlchemy)

SURF is useful as an RDF->object mapper (or RDFAlchemy)

injecting rdfa into your templates should work either (if you want to avoid triplestores)

Injecting rdfa into the template should work (if you want to avoid triple storage)

you can also expose your database as a sparql endpoint using a tool such as http://d2rq.org/

You can also use tools such as http://d2rq.org/ to expose the database as a sparql endpoint

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/759220

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索