Checking whether a given content type or Lang
can be used to read/write a certain Jena model class
#2414
namedgraph
started this conversation in
General
Replies: 4 comments 9 replies
-
See |
Beta Was this translation helpful? Give feedback.
1 reply
-
Use
Lang x = RDFLanguages.contentTypeToLang("application/sparql-results+xml");
System.out.println(x); |
Beta Was this translation helpful? Give feedback.
6 replies
-
To summarise, my main 2 quibbles are:
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Seems over-engineering.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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