W3C home > Mailing lists > Public > www-rdf-comments@w3.org > October to December 1998

Re: RDF serialization for Java.

From: Eric J. Miller <emiller@oclc.org>
Date: Wed, 25 Nov 1998 14:28:38 -0500
Message-Id: <365C5A66.A230B660@oclc.org>
To: Philippe.Le_Hegaret@sophia.inria.fr
Cc: www-rdf-comments@w3.org
Philippe,

Thank you for your comments regarding the RDF Model and Syntax
specification.

A suggestion... Do not use p for the value of ID=.  Use 'pInClassA' and
'pInClassB'. Or as an alternative, define separate namespaces for the
ClassA slot names and the ClassB slot names.

Sincerely,

Ralph Swick, W3C Metadata Activity Leader
Eric Miller, Bob Schloss, RDF Model and Syntax Chairs


> Message-ID: <36261DA1.B2E58D31@sophia.inria.fr>
> Date: Thu, 15 Oct 1998 18:06:57 +0200
> From: "Philippe Le Hégaret" <Philippe.Le_Hegaret@sophia.inria.fr>
> To: www-rdf-comments@w3.org
> Subject: RDF serialization for Java.
>
> Hello,
>
>  I'm currently working to serialize Java Objects with RDF.
>
>  For the moment, I have my own XML application (see KOML at
> http://www.inria.fr/koala/XML/serialization/) but I would like to use
a
> "standart application".
>
>  I have a problem and I would like to have an opinion.
>
>  Let's define two Java classes :
> class A {
>   int p;
> }
>
> class B extends A {
>   String p;
> }
>
>  Now, I use this model :
>
> <rdfs:Class rdf:ID="A">
>   <rdfs:subClassOf
resource="http://www.types.org/Java#java.lang.Object"/>
> </rdfs:Class>
>
> <rdf:Predicate rdf:ID="p">
>   <rdfs:domain rdf:resource="#A">
>   <rdfs:range rdf:resource="http://www.types.org/Java#int"/>
> </rdf:Predicate>
>
> <rdfs:Class rdf:ID="B">
>   <rdfs:subClassOf rdf:resource="#A"/>
> </rdfs:Class>
>
> <!-- first problem appears here, I use the same Node p -->
> <rdf:Predicate rdf:ID="p">
>   <rdfs:domain rdf:resource="#B">
>   <rdfs:range
rdf:resource="http://www.types.org/Java#java.lang.String"/>
> </rdf:Predicate>
>
>  Then, I define an instance of B :
>
> <B rdf:resource="b1">
>   <!-- gloups, second problem, which java:p is it ? -->
>   <p>1</p>
>   <p>Hello, World!</p>
> </B>
>
>   Here is the problem : I need to have two resources with the same ID
> and to reference them. I would like to have no dependance with
> an application as much as possible.
>
>  So, how can I do a model in this case ?
>
>  Thanks,
>
> Philippe.
> ---------
> Philippe Le Hegaret
> Philippe.Le_Hegaret@sophia.inria.fr -- http://www.inria.fr/koala/plh/
> KOALA/DYADE/BULL @ INRIA - Sophia Antipolis
Received on Wednesday, 25 November 1998 14:29:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 21 September 2012 14:16:26 GMT