W3C home > Mailing lists > Public > www-annotation@w3.org > January to June 2001

Re: changing annotation types under Amaya

From: Tim Moore <fctmoore@hkusua.hku.hk>
Date: Wed, 16 May 2001 23:56:25 -0400 (EDT)
Message-ID: <3B034BE7.C0C85E7E@hkusua.hku.hk>
To: www-annotation@w3.org
> Dear Colleagues,

     Thank you for your advice.  I followed it, I thought correctly, but when I
relaunched Amaya, the annotation type list was unchanged.  This is how my copy of
annot.schemas (in Amaya/config) now reads:

# annot.schemas
#
# specifies the RDF schemas to be pre-loaded for Annotations
#
# each line beginning with '#' is a comment
# all other non-empty lines must be in one of two formats:
# 1. namespacename
# 2. namespacename filename
#
# In case 1, an RDF schema is expected to be found at the namespace URI
# In case 2, the filename is expected to be a (local) copy of an RDF
#            schema for the namespace.  The strings $THOTDIR and
#            $APP_HOME may be used at the beginning of the filename
#            and will be expanded to the Amaya installation directory
#            and the user's amaya home directory respectively.

# Historical schema presented at WWW9. Obsolete.
#http://www.w3.org/1999/xx/annotation-ns#

#first release schema; do not change unless you also change the service
http://www.w3.org/2000/10/annotation-ns#  $THOTDIR/config/annotschema.rdf

#some Annotation subclasses that we think will be useful
http://www.w3.org/2000/10/annotationType# $THOTDIR/config/annottypes.rdf

#a new namespace called "MyTypes"
http://www.w3.org/2001/05/MyTypes# $THOTDIR/config/mytypes.rdf

This is how mytypes.rdf now reads (in the same directory):

<rdf:RDF
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">

<rdf:Description about="http://www.w3.org/2000/10/MyTypes#">
 <rdfs:comment>A namespace for describing types of annotations</rdfs:comment>
 <rdfs:comment>$Revision: 1.2 $ $Date: 2000/11/03 21:40:17 $</rdfs:comment>
 <rdfs:seeAlso
resource="http://www.w3.org/2000/02/Collaboration/Annotation/papers"/>
</rdf:Description>

<rdfs:Class rdf:about="http://www.w3.org/2001/05/MyTypes#Gloss">
  <rdfs:label xml:lang="en">Gloss</rdfs:label>
  <rdfs:comment>A class of Annotations representing glosses on vocabulary and
usage</rdfs:comment>
  <rdfs:subClassOf
rdf:resource="http://www.w3.org/2000/10/annotation-ns#Annotation"/>
  <rdfs:isDefinedBy resource="http://www.w3.org/2001/05/MyTypes#"/>
</rdfs:Class>

</rdf:RDF>

Note: I initially wrote the antepenultimate line (and the fourth line before
that) as in your example, namely:

  <rdfs:isDefinedBy resource="http://www.w3.org/2000/10/MyTypes#"/>
  and
  <rdfs:Class rdf:about="http://www.w3.org/2000/10/MyTypes#Gloss">

respectively.

When this didn't work, I tried the modifications indicated, not knowing exactly
what I was doing!

I expect that I have missed something obvious, and would be grateful for your
advice.

Tim Moore
The University of Hong Kong


> Re: changing annotation types under Amaya
>
> From: Ralph R. Swick (swick@w3.org)
> Date: Mon, May 14 2001
>
> *Next message: Charles McCathieNevile: "Photo metadata tool"
>
>    * Previous message: Jose Kahan: "Re: Typo in "Annotea Protocols" page"
>    * In reply to: Jose Kahan: "Re: changing annotation types under Amaya"
>    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>    * Other mail archives: [this mailing list] [other W3C mailing lists]
>    * Mail actions: [ respond to this message ] [ mail a new topic ]
>
>   ------------------------------------------------------------------------
>
> Message-Id: <200105141259.IAA22703@tux.w3.org>
> Date: Mon, 14 May 2001 08:59:03 -0400
> To: jose.kahan@w3.org, Tim Moore <fctmoore@hkusua.hku.hk>
> From: "Ralph R. Swick" <swick@w3.org>
> Cc: www-annotation@w3.org
> Subject: Re: changing annotation types under Amaya
>
> At 12:24 PM 5/14/2001 +0200, Jose Kahan wrote:
> ...
> >The annotation and annotation types RDF schemata are currently stored in the
> >Amaya/config directory under the names annotschema.rdf and annottypes.rdf.
> >
> >As we can't yet dynamically download schemas from the web, we have another
> >file called annot.schemas that tells Amaya the filenames where we stored
> >the annotation schemas.  This file is also under Amaya/config/
>
> Some further clarification:  Amaya does not yet dynamically
> load RDF schemas from the Web.  It loads only the schemas listed
> in Amaya/config/annot.schemas (SMOC - small matter of coding).
>
> But Amaya will load schemas from the Web if annot.schemas
> tells it to do so.  For the two namespaces
> http://www.w3.org/2000/10/annotation-ns# and
> http://www.w3.org/2000/10/annotationType# we cache a local
> copy of the schemas.  These are the first two files Jose is
> referring to.  It is legitimate to cache a copy of an RDF
> Schema as http://www.w3.org/TR/2000/CR-rdf-schema-20000327
> says that once you publish a namespace name you should not
> change the contents of the namespace.
>
> >I add the following line to the end of annot.schemas:
> >
> >http://www.w3.org/2001/05/MyTypes# $THOTDIR/config/mytypes.rdf
> >
> >Then I'll add a new annotation type called "kudos" in mytypes.rdf:
>
> note that, per the comments in annot.schemas, if you just put
> http://www.w3.org/2001/05/MyTypes#
> (without a second field) into that file then Amaya will attempt
> to read the schema from the Web.
>
> -Ralph
>
>   ------------------------------------------------------------------------
>
>    * Next message: Charles McCathieNevile: "Photo metadata tool"
>    * Previous message: Jose Kahan: "Re: Typo in "Annotea Protocols" page"
>    * In reply to: Jose Kahan: "Re: changing annotation types under Amaya"
>    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>    * Other mail archives: [this mailing list] [other W3C mailing lists]
>    * Mail actions: [ respond to this message ] [ mail a new topic ]
Received on Monday, 21 May 2001 01:23:18 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Friday, 25 March 2005 11:19:17 GMT