skos

skos broader and narrow inverse not working

风流意气都作罢 提交于 2021-02-11 14:47:29
问题 I have setup GraphDB SE trial version and trying out inference functionality with OWL2-RL ruleset. I have built a simple SKOS knowledge with a single broader relationship. Some how, when I try to query for narrower relationship am not getting any results. Am I going wrong in the usage ? Insertion: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX owl: <http://www.w3.org/2002/07/owl#> INSERT DATA { ex:mammals rdf:type skos

Parsing returns from AltLabel in a SPARQL query

只愿长相守 提交于 2019-12-11 02:35:25
问题 In a Wikidata SPARQL query such as the following, I want to be able to use a custom delimiter for the returns for ?placeOfBirthAltLabel . The problem is that some values under ?placeOfBirthAltLabel contain commas e.g. synonyms for "New York" include "New York, USA" as a single entry. However, as the returns are comma delimited, this single entry will be parsed as two separate strings. So in other words I need the return to be [New York, USA ; NYC ; NYC, USA ] as opposed to [New York, USA, NYC

xslt get element value based on attribute which is referenced in another node tree

你说的曾经没有我的故事 提交于 2019-11-29 17:26:51
I have the following xml file: <?xml version="1.0" encoding="utf-8" ?> <root> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skosxl="http://www.w3.org/2008/05/skos-xl#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:dc="http://purl.org/dc/terms/" xmlns:ns0="http://art.uniroma2.it/ontologies/vocbench#" xmlns:void="http://rdfs.org/ns/void#"> <skos:Concept rdf:about="http://aims.fao.org/aos/agrovoc/c_26321"> <skos:prefLabel xml:lang="fa">آبیس ماریزی‌ای</skos:prefLabel> .... <skos:prefLabel xml:lang="en">Abies mariesii</skos:prefLabel> .... <skos:broader rdf

xslt get element value based on attribute which is referenced in another node tree

限于喜欢 提交于 2019-11-28 12:40:23
问题 I have the following xml file: <?xml version="1.0" encoding="utf-8" ?> <root> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skosxl="http://www.w3.org/2008/05/skos-xl#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:dc="http://purl.org/dc/terms/" xmlns:ns0="http://art.uniroma2.it/ontologies/vocbench#" xmlns:void="http://rdfs.org/ns/void#"> <skos:Concept rdf:about="http://aims.fao.org/aos/agrovoc/c_26321"> <skos:prefLabel xml:lang="fa">آبیس ماریزی‌ای</skos