Вопрос по – Как написать SPARQL-запрос, который эффективно сопоставляет строковые литералы, игнорируя регистр

13

Error: User Rate Limit Exceeded

SELECT DISTINCT ?type WHERE {
 ?x <http://www.w3.org/2000/01/rdf-schema#label> "aspirin" .
 ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?type .
}

Error: User Rate Limit Exceeded"Tylenol"Error: User Rate Limit Exceeded"tylenol"Error: User Rate Limit Exceeded

SELECT DISTINCT ?type WHERE {
 ?x <http://www.w3.org/2000/01/rdf-schema#label> "tylenol" .
 ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?type .
}

Error: User Rate Limit Exceeded

SELECT DISTINCT ?type WHERE {
 ?x <http://www.w3.org/2000/01/rdf-schema#label> ?term .
 ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?type .
 FILTER ( regex (str(?term), "tylenol", "i") )
}

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded lmsurprenant
Error: User Rate Limit Exceeded Steve Harris

Ваш Ответ

2   ответа
2

Error: User Rate Limit Exceededmsalvadores's answerError: User Rate Limit Exceededregex.
17

regexregexUCASELCASE

SELECT DISTINCT ?type WHERE {
 ?x <http://www.w3.org/2000/01/rdf-schema#label> ?term .
 ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?type .
 FILTER (lcase(str(?term)) = "tylenol")
}

Error: User Rate Limit Exceeded4store.org/trac/wiki/TextIndexing
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded lmsurprenant

Похожие вопросы