LISTSERV mailing list manager LISTSERV 16.5

Help for CODE4LIB Archives


CODE4LIB Archives

CODE4LIB Archives


CODE4LIB@LISTS.CLIR.ORG


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

CODE4LIB Home

CODE4LIB Home

CODE4LIB  September 2013

CODE4LIB September 2013

Subject:

Re: Expressing negatives and similar in RDF

From:

Esmé Cowles <[log in to unmask]>

Reply-To:

Code for Libraries <[log in to unmask]>

Date:

Sat, 14 Sep 2013 15:26:48 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (253 lines)

It's too bad rdf:nil is only for lists -- I think it could be handy in many other contexts.  But just using an empty string should be fine:

<example:book1> <dc:title> _:bn1 .
_:bn1 <rdf:type> <content:ContentAsText> .
_:bn1 <content:characterEncoding> "UTF-8" .
_:bn1 <content:chars> "" .


I'm not sure I got much from that "Problems of the RDF model" piece, other than the fact that literals aren't URIs, and they lack many of the convenient properties of URIs.  I suppose there is a nuanced semantic argument about the value being different from the thing itself.  That distinction doesn't seem that practically important to me.

There are certainly some places where documents with RDF(a) markup would be a lot more convenient than trying to put everything in triples.  That can lead to something like the companion ContentAsXML element (and the general idea of putting markup in a literal), which usually seems like a bad fit to me.  

-Esme
--
Esme Cowles <[log in to unmask]>

"Necessity is the plea for every infringement of human freedom. It is the
 argument of tyrants; it is the creed of slaves." -- William Pitt, 1783

On 09/14/2013, at 2:22 PM, Karen Coyle <[log in to unmask]> wrote:

> This mentions empty strings but doesn't give an example of one:
> 
> *Lexical Space.* An rdf:PlainLiteral lexical form is a string of the form "/abc/@/langTag/" where "/abc/" is an arbitrary (possibly empty) string, and "/langTag/" is either the empty string or a (not necessarily lowercase) language tag. Each such lexical form is mapped to a data value dv as follows:
> 
> * If "/langTag/" is empty, then dv is equal to the string "/abc/" and
> * If "/langTag/" is not empty, then dv is equal to the pair <"/abc/",
>   "/lc-langtag/" > where "/lc-langtag/" is "/langTag/" normalized to
>   lowercase.
> 
> [http://www.w3.org/TR/rdf-plain-literal/]
> 
> I'm assuming it would be "". Do you think that works?
> 
> rdf:nil seems to be only for lists.
> "5.2.4 rdf:nil
> 
> The resource |rdf:nil| is an instance of |rdf:List <http://www.w3.org/TR/rdf-schema/#ch_list>| that can be used to represent an empty list or other list-like structure."
> 
> [http://www.w3.org/TR/rdf-schema/#ch_nil]
> 
> And I think I might be further along in this thinking if I could understand this discussion:
> http://milicicvuk.com/blog/2011/07/16/problems-of-the-rdf-model-literals/
> 
> The fact that much of library data consists of literals is an issue, and I don't (yet) understand what that means in terms of RDF. Sometimes I think that we should be treating our bibliographic descriptions as documents with RDF/RDFa markup where appropriate, rather than pretending that all of these strings are data. Sometimes I don't think that. ;-)
> 
> kc
> 
> 
> On 9/14/13 9:06 AM, Esmé Cowles wrote:
>> Yes, I was thinking you would create a content as text node, and just leave the value blank (or maybe use something like rdf:nil).
>> 
>> And the good thing about qnames is that you can use whatever you want.  I always use "mads:" instead of "madsrdf:" for MADS, and would use "cat:" or "content:" for content as text.
>> 
>> -Esme
>> --
>> Esme Cowles <[log in to unmask]>
>> 
>> "Necessity is the plea for every infringement of human freedom. It is the
>>  argument of tyrants; it is the creed of slaves." -- William Pitt, 1783
>> 
>> On 09/14/2013, at 10:27 AM, Karen Coyle <[log in to unmask]> wrote:
>> 
>>> Hmm. For the missing title would you create a content as text node with a blank body? How does RDF handle empty strings?!
>>> 
>>> (And I'm sorry to say that the qname for content as text is "cnt" - I'm going to have to just get over the dis-ease that causes me )
>>> 
>>> kc
>>> 
>>> On 9/14/13 6:47 AM, Esmé Cowles wrote:
>>>> That looks like a nice way to handle many different cases where you have a textual value, and may also want to attach other triples about certainty, source, definiteness, etc.  This would neatly handle the missing or definitely non-existent title problem.  And it also avoids sub-optimal approaches like reification or having to create a new class for every possible value that you might want to annotate.
>>>> 
>>>> -Esme
>>>> --
>>>> Esme Cowles <[log in to unmask]>
>>>> 
>>>> "Necessity is the plea for every infringement of human freedom. It is the
>>>>  argument of tyrants; it is the creed of slaves." -- William Pitt, 1783
>>>> 
>>>> On 09/14/2013, at 9:02 AM, Karen Coyle <[log in to unmask]> wrote:
>>>> 
>>>>> This reminds me of a conversation (that did not come to a conclusion) on the BIBFRAME list about the need to have a way to say that a bit of data is transcribed, not transcribed, or supplied. And that reminds me of the issues with SKOS labels, which is that if your data is text, not a URI, you can't say anything further about that because text cannot be the subject of a triple. And this was also the issue between BIBFRAME and Open Annotation because BIBFRAME wanted to have annotations that are plain text, and Open Annotation doesn't allow that for the reason that you can't further describe the text.
>>>>> 
>>>>> Which leads me to conclude that we would need to be using Content as Text
>>>>>  http://www.w3.org/TR/Content-in-RDF10/#ContentAsTextClass
>>>>> 
>>>>> kc
>>>>> 
>>>>> 
>>>>> On 9/13/13 8:57 AM, Stephen Hearn wrote:
>>>>>> The MARC21 Authority format does have some negative assertions. Field 675
>>>>>> asserts that a source contains no relevant information (vs. 670 which
>>>>>> asserts the source and its relevant information). Field 673 asserts that a
>>>>>> title is not related to the entity in the 1XX (vs. 672 which asserts that
>>>>>> the two are related). These aren't yet mapped in any detail to RDF or to
>>>>>> MADS, but finding a way to map them could be a practical approach the
>>>>>> question of negative assertions.
>>>>>> 
>>>>>> Stephen
>>>>>> 
>>>>>> 
>>>>>> On Fri, Sep 13, 2013 at 9:12 AM, Karen Coyle <[log in to unmask]> wrote:
>>>>>> 
>>>>>>> On 9/13/13 5:51 AM, Esmé Cowles wrote:
>>>>>>> 
>>>>>>>> Thomas-
>>>>>>>> 
>>>>>>>> This isn't something I've run across yet.  But one thing you could do is
>>>>>>>> create some URIs for different kinds of unknown/nonexistent titles:
>>>>>>>> 
>>>>>>>> example:book1 dc:title example:unknownTitle
>>>>>>>> example:book2 dc:title example:noTitle
>>>>>>>> etc.
>>>>>>>> 
>>>>>>> I'm bothered by the semantics of this... but maybe I'm being too rigid.
>>>>>>> This states that the title is a URI, not a string, and that the URI is a
>>>>>>> status, not the actual title. Your system will have a mixture of literal
>>>>>>> strings that ARE titles and URIs that say something about titles, both as
>>>>>>> objects of dc:title. The object of DC title needs to be the title. The
>>>>>>> title COULD be a URI if the URI represents the title (e.g. a uniform title
>>>>>>> in an authority file).
>>>>>>> 
>>>>>>> Even if this turns out to be "legal" from an RDF point of view, it seems
>>>>>>> that this would complicate title displays because you'd have to treat these
>>>>>>> URIs differently from the usual title literals, which you could just grab
>>>>>>> and toss into a display.
>>>>>>> 
>>>>>>> I'd probably leave title as the literal string, and create a new property
>>>>>>> for title status that takes its value from a controlled list. In fact,
>>>>>>> wouldn't we need something almost identical for anonymous works, to say
>>>>>>> that there really isn't an author. (Cataloging knowledge lapse: we quit
>>>>>>> using "Anonymous" as an author a while ago, right?) Given the open world
>>>>>>> assumption, we are going to need to make these kinds of negative statements.
>>>>>>> 
>>>>>>> Also, remember that OWL does NOT constrain your data, it constrains only
>>>>>>> the inferences that you can make about your data. OWL operates at the
>>>>>>> ontology level, not the data level. (The OWL 2 documentation makes this
>>>>>>> more clear, in my reading of it. I agree that the example you cite sure
>>>>>>> looks like a constraint on the data... it's very confusing.)
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> This book has no title:
>>>>>>>> example:thisbook dc:title hasobject:false .
>>>>>>>> 
>>>>>>> I don't think the title itself can be "hasobject:false". I think you need
>>>>>>> to have a property like: xx:hasATitle and this can be true or false. But
>>>>>>> I'm going to run this by the folks who developed dc in RDF and see what
>>>>>>> they say. [Did so, they concur = value of title must be a title, not
>>>>>>> information about title or status of title.]
>>>>>>> 
>>>>>>> Note that dcterms title is defined specifically as having a literal value:
>>>>>>> 
>>>>>>> Term Name: title
>>>>>>> URI:    http://purl.org/dc/terms/title
>>>>>>> Label:  Title
>>>>>>> Definition:     A name given to the resource.
>>>>>>> Type of Term:   Property <http://www.w3.org/1999/02/22-**
>>>>>>> rdf-syntax-ns#Property<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property>
>>>>>>> Refines:        http://purl.org/dc/elements/1.**1/title<http://purl.org/dc/elements/1.1/title>
>>>>>>> Version:        http://dublincore.org/usage/**terms/history/#titleT-002<http://dublincore.org/usage/terms/history/#titleT-002>
>>>>>>> Has Range:      http://www.w3.org/2000/01/rdf-**schema#Literal<http://www.w3.org/2000/01/rdf-schema#Literal>
>>>>>>> 
>>>>>>> 
>>>>>>> Whereas dc 1.1 (the old 15 element set) is more open:
>>>>>>> 
>>>>>>> URI:    http://purl.org/dc/elements/1.**1/title<http://purl.org/dc/elements/1.1/title>
>>>>>>> Label:  Title
>>>>>>> Definition:     A name given to the resource.
>>>>>>> Type of Term:   Property <http://www.w3.org/1999/02/22-**
>>>>>>> rdf-syntax-ns#Property<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property>
>>>>>>> Version:        http://dublincore.org/usage/**terms/history/#title-006<http://dublincore.org/usage/terms/history/#title-006>
>>>>>>> Note:   A second property with the same name as this property has been
>>>>>>> declared in the dcterms: namespace (http://purl.org/dc/terms/). See the
>>>>>>> Introduction to the document "DCMI Metadata Terms" (http://dublincore.org/
>>>>>>> **documents/dcmi-terms/ <http://dublincore.org/documents/dcmi-terms/>)
>>>>>>> for an explanation.
>>>>>>> 
>>>>>>> 
>>>>>>> I still think you are going outside of the definition of dc:title, which
>>>>>>> is "The name of the resource." UNLESS you treat your "no title" as the
>>>>>>> actual name of the resource, like "untitled" as the title of a painting.
>>>>>>> But then we do have a serial with the actual title "Title varies" ... ;-)
>>>>>>> 
>>>>>>> kc
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>> It is unknown if this book has a title (sounds undesirable but I can
>>>>>>>> think of instances where it might be handy[2]):
>>>>>>>> example:thisbook dc:title hasobject:unknown .
>>>>>>>> 
>>>>>>>> This book has a title but it has not been specified:
>>>>>>>> example:thisbook dc:title hasobject:true .
>>>>>>>> 
>>>>>>>> In terms of cataloguing, the answer is perhaps to refer to the rules
>>>>>>>> (which would normally mandate supplied titles in square brackets and so
>>>>>>>> forth) rather than use RDF to express this kind of thing, although the
>>>>>>>> rules differ depending on the part of description and, in the case of the
>>>>>>>> kind of thing that prompted the question- the presence of clasps on rare
>>>>>>>> books- there are no rules. I wonder if anyone has any more wisdom on this.
>>>>>>>> 
>>>>>>>> Many thanks,
>>>>>>>> 
>>>>>>>> Tom
>>>>>>>> 
>>>>>>>> [1] Adapted from http://www.w3.org/2007/OWL/**
>>>>>>>> wiki/Primer#Object_Properties<http://www.w3.org/2007/OWL/wiki/Primer#Object_Properties>
>>>>>>>> [2] No many tbh, but e.g. title in an unknown script or indecipherable
>>>>>>>> hand.
>>>>>>>> 
>>>>>>>> ---
>>>>>>>> 
>>>>>>>> Thomas Meehan
>>>>>>>> Head of Current Cataloguing
>>>>>>>> Library Services
>>>>>>>> University College London
>>>>>>>> Gower Street
>>>>>>>> London WC1E 6BT
>>>>>>>> 
>>>>>>>> [log in to unmask]
>>>>>>>> 
>>>>>>> --
>>>>>>> Karen Coyle
>>>>>>> [log in to unmask] http://kcoyle.net
>>>>>>> ph: 1-510-540-7596
>>>>>>> m: 1-510-435-8234
>>>>>>> skype: kcoylenet
>>>>>>> 
>>>>>> 
>>>>> --
>>>>> Karen Coyle
>>>>> [log in to unmask] http://kcoyle.net
>>>>> m: 1-510-435-8234
>>>>> skype: kcoylenet
>>>> 
>>> -- 
>>> Karen Coyle
>>> [log in to unmask] http://kcoyle.net
>>> m: 1-510-435-8234
>>> skype: kcoylenet
> 
> -- 
> Karen Coyle
> [log in to unmask] http://kcoyle.net
> m: 1-510-435-8234
> skype: kcoylenet

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003

ATOM RSS1 RSS2



LISTS.CLIR.ORG

CataList Email List Search Powered by the LISTSERV Email List Manager