Checking whether a given content type or Lang can be used to read/write a certain Jena model class
#2414
Closed
namedgraph
started this conversation in
General
Replies: 6 comments 9 replies
|
Use
Lang x = RDFLanguages.contentTypeToLang("application/sparql-results+xml");
System.out.println(x); |
6 replies
|
To summarise, my main 2 quibbles are:
|
2 replies
|
Seems over-engineering.
|
0 replies
|
Ah OK, I see they're part of |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to find a
ResultSet-based equivalent to theRDFLanguagesclass but not able to.There is
RDFParserRegistryandRDFWriterRegistry. There is alsoResultSetReaderRegistryandResultSetWriterRegistry.But there is only
RDFLanguages, notResultSetLanguages. That seems inconsistent and asymmetric. Would it make sense to add such a class?More specifically, what can I use as an equivalent of
RDFLanguages.contentTypeToLang()but forResultSetlangs?All reactions