Checking whether a given content type or Lang
can be used to read/write a certain Jena model class
#2414
Replies: 6 comments 9 replies
-
See |
Beta Was this translation helpful? Give feedback.
-
Use
Lang x = RDFLanguages.contentTypeToLang("application/sparql-results+xml");
System.out.println(x); |
Beta Was this translation helpful? Give feedback.
-
To summarise, my main 2 quibbles are:
|
Beta Was this translation helpful? Give feedback.
-
Seems over-engineering.
|
Beta Was this translation helpful? Give feedback.
-
@afs seems like this has been addressed by #2510? Thank you for that :) I still feel like a |
Beta Was this translation helpful? Give feedback.
-
Ah OK, I see they're part of |
Beta Was this translation helpful? Give feedback.
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 theRDFLanguages
class but not able to.There is
RDFParserRegistry
andRDFWriterRegistry
. There is alsoResultSetReaderRegistry
andResultSetWriterRegistry
.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 forResultSet
langs?Beta Was this translation helpful? Give feedback.
All reactions