<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Stefano,<br>
>>>From the standpoint of the files as RDF and the Linked Data world, it
would be a waste of time to ever define a label for a URI-identified
resource more than once.&nbsp; However, I am thinking about this problem
from the standpoint of the GUID requirements for providing both human
and machine-readable representations of a resource.&nbsp; If one must create
the RDF to meet the GUID requirement for making available a
machine-readable representation, then it would be a relatively simple
matter to create the required human-readable representation through
AJAX or some other method that can use the RDF XML file as a data
source.&nbsp; AJAX is "stupid" in the sense that it doesn't "understand"
RDF.&nbsp; It just uses an XML file as a source of data.&nbsp; So an HTML file
using the RDF+XML file as an AJAX data source would need to get the
label information from within the particular RDF+XML file containing
the representation of the GUID and not get it by dereferencing a link
to another file, like the FOAF file that's the object of the
dwc:recordedBy triple.&nbsp; That would be the reason for providing the
rdfs:label property within multiple files.<br>
<br>
I'm working on a functional example of this.&nbsp; When I get it working,
I'll post it to the list.<br>
Steve<br>
<br>
Stefano Bocconi wrote:
<blockquote cite="mid:4BF68231.4030205@gmail.com" type="cite">
  <pre wrap="">Hi Steve,

Maybe I am missing something here, but RDF is a knowledge representation
language, therefore stating something (a triple) more than once would
not make sense, and duplicates are not kept as far as I know. This
unless as you say there would be a provenance mechanism in place, but
this last issue is being studied in the context of named graph, which
are not yet in widespread use. With named graph triples coming from
different sources (basically RDF files) would have a sort of fourth
attribute that could make them different from same statements stated
elsewhere. Still within the same file this would not lead to multiple
equal statements.

Regards,

    Stefano Bocconi

Steve Baskauf wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">For those who might be interested, I have answered my own question (at
least for one instance).  I created an rdf/xml file just like
<a class="moz-txt-link-freetext" href="http://dl.dropbox.com/u/639486/tdwg/1.xml">http://dl.dropbox.com/u/639486/tdwg/1.xml</a>
except that I changed the URI of the resource described by the about
attribute to <a class="moz-txt-link-rfc2396E" href="http://herbarium.org/hb123457">"http://herbarium.org/hb123457"</a>.  I then had the OpenLink
RDF browser
<a class="moz-txt-link-freetext" href="http://demo.openlinksw.com/rdfbrowser/">http://demo.openlinksw.com/rdfbrowser/</a>
query both files.  It only listed a single triple for
<a class="moz-txt-link-freetext" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me">http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me</a> --&gt; label --&gt;
"Steve Baskauf"
If I changed the label in the hb123457 file to "Steven J Baskauf",
OpenLink showed
<a class="moz-txt-link-freetext" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me">http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me</a> as having two
labels, "Steve Baskauf" and "Steven J Baskauf".  When I had OpenLink
query the <a class="moz-txt-link-freetext" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf">http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf</a> file
itself, it merged the label property with the other properties of the
<a class="moz-txt-link-freetext" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me">http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me</a> URI.

So at least in the case of one Linked Data client (OpenLink),
redundant information is not recorded as additional triples.  So at
least for Linked Data clients similar to OpenLink, in RDF the method
of labeling a URI used as the object of a Darwin Core term seems to be
a good way of providing both types of information (URI and text) for
"local consumption" (within a single RDF file for an occurrence).

Steve

Steve Baskauf wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">OK, I just had another thought/question about the approach suggested
here.  If there were only one occurrence record in one RDF XML file,
then this approach would be great.  I could create an XSLT that would
make a human readable view of the RDF file that made use of the
&lt;rdfs:label&gt; information to display the person's name as a string.
However, if I have a database containing 10000 occurrence records and
each record is represented by an RDF XML file (containing that label
statement) that is provided when the HTTP URI guid for that
occurrence is dereferenced, then I am making the assertion that
PERSON <a class="moz-txt-link-rfc2396E" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me">&lt;http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me&gt;</a> --&gt;
has name --&gt; "Steve Baskauf"
10000 times.  Would a linked data client that was collecting metadata
about my collection record 10000 triples, counting each label
description as a separate assertion because it was made by a separate
statement in a separate file, or would it be "smart" enough to
realize that it was really the same thing being said 10000 times and
just record one triple?  What this really boils down to is "trust" of
sources making assertions-does a linked data client "trust" that one
assertion of the label property of
<a class="moz-txt-link-freetext" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me">http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me</a> is as good as
another, or will it feel compelled to keep track of all of the
assertions so that a user of the triple store can draw their own
conclusions about the validity of all of the individual assertions?

It would be very simple to make the assertion that "Steve Baskauf" is
a label for <a class="moz-txt-link-freetext" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me">http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me</a>
in the FOAF file itself, but then the XSLT method wouldn't work
because the XSL wouldn't be dereferencing the foaf.rdf file.

Steve





Roderic Page wrote:
      </pre>
      <blockquote type="cite">
        <pre wrap="">I think part of the problem here results from trying to satisfy
modelling the data and having something that is easy to read (i.e.,
having both a URI and a literal for the same tag). The result is messy
and inconsistent.

I think Peter Ansell's first option is a good RDF solution, namely:

<a class="moz-txt-link-freetext" href="http://dl.dropbox.com/u/639486/tdwg/1.xml">http://dl.dropbox.com/u/639486/tdwg/1.xml</a>

=================
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;rdf:RDF
    xmlns:rdf=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">"http://www.w3.org/1999/02/22-rdf-syntax-ns#"</a>
    xmlns:rdfs=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2000/01/rdf-schema#">"http://www.w3.org/2000/01/rdf-schema#"</a>
    xmlns:dwc=<a class="moz-txt-link-rfc2396E" href="http://rs.tdwg.org/dwc/terms/">"http://rs.tdwg.org/dwc/terms/"</a>&gt;

    &lt;!-- occurrence --&gt;
    &lt;rdf:Description rdf:about=<a class="moz-txt-link-rfc2396E" href="http://herbarium.org/hb123456">"http://herbarium.org/hb123456"</a>&gt;
       &lt;dwc:recordedBy rdf:resource=<a class="moz-txt-link-rfc2396E" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me">"http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me
"</a>/&gt;
    &lt;/rdf:Description&gt;

    &lt;!-- person --&gt;
    &lt;rdf:Description rdf:about=<a class="moz-txt-link-rfc2396E" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me">"http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me
"</a>&gt;
       &lt;rdfs:label&gt;Steve Baskauf&lt;/rdfs:label&gt;
    &lt;/rdf:Description&gt;

&lt;/rdf:RDF&gt;
=================

This document says:

OCCURRENCE <a class="moz-txt-link-rfc2396E" href="http://herbarium.org/hb123456">&lt;http://herbarium.org/hb123456&gt;</a> --&gt; recorded by --&gt; PERSON <a class="moz-txt-link-rfc2396E" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me">&lt;http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me
 &gt;</a> --&gt; who has name --&gt; "Steve Baskauf"

which I assume is what we want. You can see this graph in the W3C RDF
validator here <a class="moz-txt-link-freetext" href="http://tinyurl.com/39nqho2">http://tinyurl.com/39nqho2</a>

The RDF has all the information a linked data client needs in order to
say this, and we could also write a XSLT style sheet to render this in
HTML for people to read.

Adding &lt;dwc:recordedBy&gt;Steve Baskauf&lt;/dwc:recordedBy is a hack that
breaks the model.

Note also that if the person doesn't have a URI we still shouldn't use
dwc:recordedBy as a literal. Instead we can do this:

<a class="moz-txt-link-freetext" href="http://dl.dropbox.com/u/639486/tdwg/2.xml">http://dl.dropbox.com/u/639486/tdwg/2.xml</a>

=================
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;rdf:RDF
    xmlns:rdf=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">"http://www.w3.org/1999/02/22-rdf-syntax-ns#"</a>
    xmlns:rdfs=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2000/01/rdf-schema#">"http://www.w3.org/2000/01/rdf-schema#"</a>
    xmlns:dwc=<a class="moz-txt-link-rfc2396E" href="http://rs.tdwg.org/dwc/terms/">"http://rs.tdwg.org/dwc/terms/"</a>&gt;

    &lt;!-- occurrence --&gt;
    &lt;rdf:Description rdf:about=<a class="moz-txt-link-rfc2396E" href="http://herbarium.org/hb123456">"http://herbarium.org/hb123456"</a>&gt;
       &lt;!-- person --&gt;
       &lt;dwc:recordedBy rdf:parseType="Resource"&gt;
            &lt;rdfs:label&gt;Steve Baskauf&lt;/rdfs:label&gt;
       &lt;/dwc:recordedBy&gt;
    &lt;/rdf:Description&gt;

&lt;/rdf:RDF&gt;
=================

Here we are saying that the occurrence was recorded by a person called
Steve Baskauf. If you paste this into the W3C validator you get the
same model

OCCURRENCE <a class="moz-txt-link-rfc2396E" href="http://herbarium.org/hb123456">&lt;http://herbarium.org/hb123456&gt;</a> --&gt; recorded by --&gt; PERSON
&lt;xxx&gt; --&gt; who has name --&gt; "Steve Baskauf"

Since "Steve Baskauf" in this example doesn't have a URI we get a
"bnode" with a local identifier. See <a class="moz-txt-link-freetext" href="http://tinyurl.com/392qzb3">http://tinyurl.com/392qzb3</a> .

In both cases (person with or without a URI) we are saying the same
thing. If you want a literal for &lt;dwc:recordedBy&gt; (say for ease of
display) then I think you want a different tag that is expressly
defined to do just that. For example, <a class="moz-txt-link-freetext" href="http://rs.tdwg.org/ontology/voc/TaxonOccurrence">http://rs.tdwg.org/ontology/voc/TaxonOccurrence</a>
  has &lt;identifiedTo&gt;  to point to a URI for a taxon, and
&lt;identifiedToString&gt; if you want the literal. I don't know if dwc has
anything equivalent for recordedBy (and can somebody please tell me
why we now have so many vocabularies for the same things?)

Personally I think that starting with XML and trying to generate RDF
and HTML from that is going to lead to a world of hurt. I suspect it
makes more sense to:

a) model what we want to say
b) say it in RDF
c) write a XSLT to convert it to HTML for humans

Regards

Rod





On 20 May 2010, at 06:35, Bob Morris wrote:


        </pre>
        <blockquote type="cite">
          <pre wrap="">Per my discussion in answer to the original problem, I think what you
are tripping on is that the way you want to do this effectively trying
to make a triple with two objects.  I believe it is not really a
modeling question, but rather a question of how RDF/XML is translated
into triples.

Bob Morris

On Wed, May 19, 2010 at 9:52 PM, Steve Baskauf
<a class="moz-txt-link-rfc2396E" href="mailto:steve.baskauf@vanderbilt.edu">&lt;steve.baskauf@vanderbilt.edu&gt;</a> wrote:

          </pre>
          <blockquote type="cite">
            <pre wrap="">This recent discussion reminds me of a question that I have been
wondering about for several months and hadn't gotten around to
bringing
up: can you have a Darwin Core XML representation where an element
has a
literal value and an attribute? If the XML is RDF, then I think the
answer is pretty much "no" as I just found out with the W3C
Validator.
However, in generic XML I don't think there is any rule that says
that
one can't have any attribute that one wants.  The only guidance I
know
of on the subject is:
<a class="moz-txt-link-freetext" href="http://rs.tdwg.org/dwc/terms/guides/xml/index.htm#implement">http://rs.tdwg.org/dwc/terms/guides/xml/index.htm#implement</a>
It states that the value of a Darwin Core property should be the
content
of the element rather than stating the value as an attribute.
However,
I have the situation where I want to store or transfer two somewhat
equivalent representations of the value of a property: a string
literal
form and a URI form.  In the example we've been talking about, I
would
like my generic (non-RDF) XML to do something like this:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;dwr:SimpleDarwinRecordSet
xmlns:rdf=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">"http://www.w3.org/1999/02/22-rdf-syntax-ns#"</a>
                xmlns:dwc=<a class="moz-txt-link-rfc2396E" href="http://rs.tdwg.org/dwc/terms/">"http://rs.tdwg.org/dwc/terms/"</a>
                xmlns:dwr=<a class="moz-txt-link-rfc2396E" href="http://rs.tdwg.org/dwc/xsd/simpledarwincore/">"http://rs.tdwg.org/dwc/xsd/simpledarwincore/
"</a>
                &gt;
&lt;dwr:SimpleDarwinRecord&gt;
    &lt;dwc:occurrenceID
rdf:resource=<a class="moz-txt-link-rfc2396E" href="http://herbarium.org/hb123456">"http://herbarium.org/hb123456"</a>&gt;<a class="moz-txt-link-freetext" href="http://herbarium.org/hb123456">http://herbarium.org/hb123456</a>
&lt;/dwc:occurrenceID&gt;
    &lt;dwc:recordedBy
rdf:resource=<a class="moz-txt-link-rfc2396E" href="http://people.vanderbilt.edu/~steve.baskauf/foaf.rdf#me">"http://people.vanderbilt.edu/~steve.baskauf/
foaf.rdf#me"</a>&gt;Steve
Baskauf&lt;/dwc:recordedBy&gt;
    &lt;dwc:basisOfRecord
rdf:resource=<a class="moz-txt-link-rfc2396E" href="http://rs.tdwg.org/dwc/dwctype/PreservedSpecimen">"http://rs.tdwg.org/dwc/dwctype/
PreservedSpecimen"</a>&gt;PreservedSpecimen&lt;/dwc:basisOfRecord&gt;
    ... more elements, mostly with string literal values...
&lt;/dwr:SimpleDarwinRecord&gt;
&lt;/dwr:SimpleDarwinRecordSet&gt;

This would meet the basic guidelines of the Darwin Core XML Guide in
that the literal values would be the contents of the elements.
What I
don't know is if the inclusion of the rdf:resource attributes would
invalidate the XML if it were validated against someone's schema that
was silent about attributes or if the schema would have to explicitly
say that having an rdf:resource attribute was a valid option.  I
think I
don't know enough about XML schemas ...

The reason why I would like to maintain/transfer both types of values
(literal and URI) is so that I could use the XML data to generate
both
HTML and RDF if I wanted.  The HTML would tell humans that the
occurrence was a PreservedSpecimen, but the RDF would tell a linked
data
client that the occurrence was a
<a class="moz-txt-link-freetext" href="http://rs.tdwg.org/dwc/dwctype/PreservedSpecimen">http://rs.tdwg.org/dwc/dwctype/PreservedSpecimen</a> .  I realize that
for
my own internal use, the XML can have any format I want, but if I
were
exporting XML for general public use, would it be bad to use the
approach above?

Steve

As an aside, I wanted to see exactly what the definition was for
rdf:resource  However, the usual namespace for rdf:
(<a class="moz-txt-link-freetext" href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>) doesn't seem to include
"resource" in the defined properties.  Very odd!  Maybe I'm just
missing
something...

--
Steven J. Baskauf, Ph.D., Senior Lecturer
Vanderbilt University Dept. of Biological Sciences

postal mail address:
VU Station B 351634
Nashville, TN  37235-1634,  U.S.A.

delivery address:
2125 Stevenson Center
1161 21st Ave., S.
Nashville, TN 37235

office: 2128 Stevenson Center
phone: (615) 343-4582,  fax: (615) 343-6707
<a class="moz-txt-link-freetext" href="http://bioimages.vanderbilt.edu">http://bioimages.vanderbilt.edu</a>

_______________________________________________
tdwg-tag mailing list
<a class="moz-txt-link-abbreviated" href="mailto:tdwg-tag@lists.tdwg.org">tdwg-tag@lists.tdwg.org</a>
<a class="moz-txt-link-freetext" href="http://lists.tdwg.org/mailman/listinfo/tdwg-tag">http://lists.tdwg.org/mailman/listinfo/tdwg-tag</a>



            </pre>
          </blockquote>
          <pre wrap="">--
Robert A. Morris
Emeritus Professor  of Computer Science
UMASS-Boston
100 Morrissey Blvd
Boston, MA 02125-3390
Associate, Harvard University Herbaria
email: <a class="moz-txt-link-abbreviated" href="mailto:ram@cs.umb.edu">ram@cs.umb.edu</a>
web: <a class="moz-txt-link-freetext" href="http://bdei.cs.umb.edu/">http://bdei.cs.umb.edu/</a>
web: <a class="moz-txt-link-freetext" href="http://etaxonomy.org/FilteredPush">http://etaxonomy.org/FilteredPush</a>
<a class="moz-txt-link-freetext" href="http://www.cs.umb.edu/~ram">http://www.cs.umb.edu/~ram</a>
phone (+1)617 287 6466
_______________________________________________
tdwg-tag mailing list
<a class="moz-txt-link-abbreviated" href="mailto:tdwg-tag@lists.tdwg.org">tdwg-tag@lists.tdwg.org</a>
<a class="moz-txt-link-freetext" href="http://lists.tdwg.org/mailman/listinfo/tdwg-tag">http://lists.tdwg.org/mailman/listinfo/tdwg-tag</a>


          </pre>
        </blockquote>
        <pre wrap="">---------------------------------------------------------
Roderic Page
Professor of Taxonomy
DEEB, FBLS
Graham Kerr Building
University of Glasgow
Glasgow G12 8QQ, UK

Email: <a class="moz-txt-link-abbreviated" href="mailto:r.page@bio.gla.ac.uk">r.page@bio.gla.ac.uk</a>
Tel: +44 141 330 4778
Fax: +44 141 330 2792
AIM: <a class="moz-txt-link-abbreviated" href="mailto:rodpage1962@aim.com">rodpage1962@aim.com</a>
Facebook: <a class="moz-txt-link-freetext" href="http://www.facebook.com/profile.php?id=1112517192">http://www.facebook.com/profile.php?id=1112517192</a>
Twitter: <a class="moz-txt-link-freetext" href="http://twitter.com/rdmpage">http://twitter.com/rdmpage</a>
Blog: <a class="moz-txt-link-freetext" href="http://iphylo.blogspot.com">http://iphylo.blogspot.com</a>
Home page: <a class="moz-txt-link-freetext" href="http://taxonomy.zoology.gla.ac.uk/rod/rod.html">http://taxonomy.zoology.gla.ac.uk/rod/rod.html</a>






.


        </pre>
      </blockquote>
      <pre wrap="">--
Steven J. Baskauf, Ph.D., Senior Lecturer
Vanderbilt University Dept. of Biological Sciences

postal mail address:
VU Station B 351634
Nashville, TN  37235-1634,  U.S.A.

delivery address:
2125 Stevenson Center
1161 21st Ave., S.
Nashville, TN 37235

office: 2128 Stevenson Center
phone: (615) 343-4582,  fax: (615) 343-6707
<a class="moz-txt-link-freetext" href="http://bioimages.vanderbilt.edu">http://bioimages.vanderbilt.edu</a>

      </pre>
    </blockquote>
    <pre wrap="">--
Steven J. Baskauf, Ph.D., Senior Lecturer
Vanderbilt University Dept. of Biological Sciences

postal mail address:
VU Station B 351634
Nashville, TN  37235-1634,  U.S.A.

delivery address:
2125 Stevenson Center
1161 21st Ave., S.
Nashville, TN 37235

office: 2128 Stevenson Center
phone: (615) 343-4582,  fax: (615) 343-6707
<a class="moz-txt-link-freetext" href="http://bioimages.vanderbilt.edu">http://bioimages.vanderbilt.edu</a>

------------------------------------------------------------------------

_______________________________________________
tdwg-tag mailing list
<a class="moz-txt-link-abbreviated" href="mailto:tdwg-tag@lists.tdwg.org">tdwg-tag@lists.tdwg.org</a>
<a class="moz-txt-link-freetext" href="http://lists.tdwg.org/mailman/listinfo/tdwg-tag">http://lists.tdwg.org/mailman/listinfo/tdwg-tag</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->.

  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Steven J. Baskauf, Ph.D., Senior Lecturer
Vanderbilt University Dept. of Biological Sciences

postal mail address:
VU Station B 351634
Nashville, TN  37235-1634,  U.S.A.

delivery address:
2125 Stevenson Center
1161 21st Ave., S.
Nashville, TN 37235

office: 2128 Stevenson Center
phone: (615) 343-4582,  fax: (615) 343-6707
<a class="moz-txt-link-freetext" href="http://bioimages.vanderbilt.edu">http://bioimages.vanderbilt.edu</a>
</pre>
</body>
</html>