Garret Wilson wrote: > Reto Bachmann-Gmür wrote: >> - fully qualified java-class names (eg: "org.example.tools.MyTool") >> >> While I could use xsd:string I think it would be better to use custom >> datatypes to have literals like >> "org.example.tools.MyTool"^^http://example.org/datatypes#javaClass. >> > > My opinion (see my earlier rants against RDF literals on this list): > for Java classes shun literals and use URIs. For Java classes, use the > "java" URI scheme. That's what I do. No, it's not official, but I > would argue that it's more standardized than an any RDF Java class > datatype out there. It makes sense. It was even listed on > http://www.w3.org/Addressing/schemes.html at one time. I wouldn't say that something is more standardized just because its used by more people, creating a uri-scheme involves registration with iana, as the space for scheme's is much more limited than the URI-space used for datatypes. But the question to me seems to be whether the thing is a name or something mapping to a value. If we follow the URI approach and say that the uri-scheme denotes exclusively Resources of type ex:JavaClass I could set the range of my ex:javaImplementation property to ex:JavaClass this would allow any resource with a URI of the java-scheme to be its object, but it would also allow resources with URIs from other schemes to be used, e.g. an HTTP-URI (as long as the server returns a 303). Having a datatype-property with java-class-name as range is much more restrictive. Another issue is the identity of the nodes, the unique-name constraint of java-classes can be expressed with an identity constraint definition on the datatypes but I can't think of any way to tell an RDF or OWL processor that a resource may not have two different URIs of the java-scheme. RetoReceived on Wednesday, 22 August 2007 07:25:45 GMT
This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:45:17 GMT