New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept 'RDF' module that uses RDF4J? #55
Comments
In general I am always happy to see inter-operability support via new format modules. So I think it might be good idea to create separate one first, just to make sure everything goes smoothly and then I can help get it merged when time comes. As to RDF, I assume this is the mature XML thing from late -90s? |
Thank you for the quick reply, @cowtowncoder . Nowadays, RDF/XML isn't very popular. I'm thinking more of the Turtle format.
Or JSON-LD, which also falls under the umbrella of RDF: {
"@context": {
"name": "http://xmlns.com/foaf/0.1/name",
"homepage": {
"@id": "http://xmlns.com/foaf/0.1/workplaceHomepage",
"@type": "@id"
},
"Person": "http://xmlns.com/foaf/0.1/Person"
},
"@id": "http://me.example.com",
"@type": "Person",
"name": "John Smith",
"homepage": "http://www.example.com/"
} Full list of formats that RDF4J supports is here. I'm actually not familiar with the difference between the datatype and dataformat modules. If it helps, RDF4J doesn't have a streaming/incremental parsing/writing API. Perhaps it's worth pointing our the RDFBeans project, which we're basically hoping to "port" to Jackson, if possible. |
Ah. Yes, makes sense, there isn't much need/benefit for XML as the underlying format. As to separation of format modules vs datatypes:
On the other hand, if Jackson is simply used as low-level parser/generator, there may not be need/benefit in trying to make a library fit these approaches. There are many projects that do this for JSON processing at least. Brief look at So... I don't know. If there is a canonical set of objects ("Object Model") that can represent logical RDF graphs regardless of encoding it would seem like a fit for datatype module. If aspects are intertwined then Jackson abstractions are probably not a good fit. |
One other note: looking at Turtle, TriG, those would almost make sense as format modules, except that they may try to add semantics that muddle line between general-purpose format and DSL. So question is whether they would map clearly to JSON-influenced token-stream model. If they do, the next question would be whether there is benefit there; if mapping to token streams is clean enough perhaps higher level abstractions could and would work nicely. Not sure if my thinking out loud here helps. :) |
Thanks, @cowtowncoder . Your thinking out loud was super helpful. I realize now that I was kind of headed in the wrong direction, as I'm not trying to rewrite RDF4J. I was just hoping to take advantage of the bean binding facilities provided by Jackson to allow usage of Jackson's standard annotations. |
We're thinking of writing a
jackson-dataformats-rdf
that uses http://rdf4j.org, akin tojackson-dataformat-yaml
which uses SnakeYAML.What are the odds that it would be accepted? (If not, that's OK, instead of forking
jackson-dataformats-text
we'll just create our own repo.)Thanks!
The text was updated successfully, but these errors were encountered: