On 26/12/17 16:21, Victor Porton wrote:
I am writing some free software which depends on Jena.
In my software to store a URI (or more generally IRI) variable should I
use "Resource" class or simply a "String"?
Resource.
(Or, rarely, a literal with datatype xsd:anyURI when the use of the URI
is being quoted.)
What are advantages of either?
Some (dis)advantages I know:
Resource is more specialized that String. I should use a specialized
type.
String may take less memory than Resource.
Resource may be blank what it not in my plans.