Incomplete search results

53 views
Skip to first unread message

Gabriel Kerneis

unread,
May 5, 2015, 5:35:05 AM5/5/15
to gettyv...@googlegroups.com
Hi,

Looking for "arts and crafts" in AAT does not return "Arts and Crafts (movement)" (aat:300266319). Looking for "arts crafts" does. Any idea what is going on here?

Thanks,

Gabriel

Vladimir Alexiev

unread,
May 13, 2015, 7:56:54 AM5/13/15
to gettyv...@googlegroups.com, ker...@google.com
Hi Gabriel!

As explained in Full_Text_Search_Query, this makes a FTS for "arts* AND and* AND crafts*".
"and" is a stop-word (not indexed by Lucene), so the query does not match anything.
You should rather search for "arts crafts" (or if you're unsure about singular vs plural, use "art craft").

If you need different searches, you'll need to use SPARQL. Eg see Find_Subject_by_Exact_English_PrefLabel.

Note: if you search for "art and" in Any thesaurus, you'll find things like Andover Museum and Art Gallery  and Artzt, Jean-André.
So you see that "and" doesn't search for that word, but a prefix.

Hope this helps!

Vladimir Alexiev

unread,
May 22, 2015, 7:19:04 AM5/22/15
to gettyv...@googlegroups.com, ker...@google.com
Hi Gabriel! A good SPARQL query for this purpose is this:
SELECT * {
 
?c a gvp:Concept;
    skos
:inScheme ?aat;
    gvp
:prefLabelGVP/xl:literalForm ?label ;
    skos
:scopeNote [dct:language gvp_lang:en; rdf:value ?ScopeNote] ;
    luc
:term "\"arts and crafts\""
}
I'll document it in the ver 3.1 of the documentation

Vladimir Alexiev

unread,
May 22, 2015, 7:23:35 AM5/22/15
to gettyv...@googlegroups.com, vlad...@sirma.bg, ker...@google.com
This also returns aat:300054704 "crafts (art genre)". That's no mistake, this genre has an alt label "arts and crafts".
A small fix for the query (works even without it). One of the lines should be:
    skos:inScheme aat:;

Reply all
Reply to author
Forward
0 new messages