Sparql RDFazer不显示结果(查询中出现语法错误)

Sparql RDFazer不显示结果(查询中出现语法错误),sparql,rdf,ontology,virtuoso,Sparql,Rdf,Ontology,Virtuoso,这是我第一次研究本体论。 我下载了Virtuoso,这也帮助我找到与本体匹配的术语。。 这是默认的JSON文件(包括查询语句),我根本没有更改它: { "sparql": "http://localhost:8890/sparql", "fileURI": "", "profile": "ESCO (virtuoso)", "profiles": { "ESCO (virtuoso)": { "query": "select ?target ?label (group_c

这是我第一次研究本体论。 我下载了Virtuoso,这也帮助我找到与本体匹配的术语。。 这是默认的JSON文件(包括查询语句),我根本没有更改它:

{
"sparql": "http://localhost:8890/sparql",
"fileURI": "",
"profile": "ESCO (virtuoso)",
"profiles": {
    "ESCO (virtuoso)": {
        "query": "select ?target ?label (group_concat(distinct(?labels); separator=\"| \") as ?altLabels) (group_concat(distinct(?types); separator=\"| \") as ?types)\n where { \n{ ?target a <http://ec.europa.eu/esco/model#Occupation> . } \nUNION\n { ?target a <http://ec.europa.eu/esco/model#Skill> . } \n?target <http://www.w3.org/2008/05/skos-xl#prefLabel> ?thing3. ?thing3 <http://www.w3.org/2008/05/skos-xl#literalForm> ?label .\n ?target <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?types .\n{ ?target <http://www.w3.org/2008/05/skos-xl#prefLabel> ?thing1. \n?thing1 <http://www.w3.org/2008/05/skos-xl#literalForm> ?plabels . \nFILTER (bif:contains(?plabels,\"'$searchTerm*'\")) . \nFILTER (lang(?plabels) = \"en\") . } \nUNION\n { ?target <http://www.w3.org/2008/05/skos-xl#altLabel> ?thing2.\n ?thing2 <http://www.w3.org/2008/05/skos-xl#literalForm> ?plabels .\n FILTER (bif:contains(?plabels,\"'$searchTerm*'\")) . \nFILTER (lang(?plabels)= \"en\") . \n} \nOPTIONAL {?target <http://www.w3.org/2008/05/skos-xl#altLabel> ?thing4\n. ?thing4 <http://www.w3.org/2008/05/skos-xl#literalForm> ?labels\n. FILTER (lang (?labels) = \"en\") \n}\nFILTER (lang (?label) = \"en\") \n} GROUP BY ?target ?label",
        "uriToUrl": "'https://ec.europa.eu/esco/web/guest/concept/-/concept/thing/en/' +uri",
        "labelProperty": "label",
        "labelPredicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
        "storedInfo": {
            "label": {
                "predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
                "type": "property",
                "decorate": {
                    "xml:lang": "en"
                }
            },
            "altLabels": {
                "predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
                "type": "property",
                "csv": "|",
                "decorate": {
                    "xml:lang": "en"
                }
            },
            "types": {
                "predicate": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
                "type": "relation",
                "csv": "|"
            }
        }
    },
    "default (skos)": {
        "query": "select ?target ?label (group_concat(distinct(?labels); separator=\"| \") as ?altLabels)\n (group_concat(distinct(?types); separator=\"| \") as ?types) where {\n ?target <http://www.w3.org/2004/02/skos/core##prefLabel> ?label .\n ?target <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?types .\n{ ?target <http://www.w3.org/2004/02/skos/core#prefLabel> ?plabels .\n FILTER (bif:contains(?plabels,\"'$searchTerm*'\")) . }\n UNION {\n ?target <http://www.w3.org/2004/02/skos/core#altLabel> ?plabels .\n FILTER (bif:contains(?plabels,\"'$searchTerm*'\")) .\n } OPTIONAL {\n?target <http://www.w3.org/2004/02/skos/core#altLabel> ?labels.\n FILTER (lang (?labels) = \"en\") }\nFILTER (lang (?label) = \"en\") \n} GROUP BY ?target ?label",
        "uriToUrl": "uri",
        "labelProperty": "label",
        "labelPredicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
        "storedInfo": {
            "label": {
                "predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
                "type": "property",
                "decorate": {
                    "xml:lang": "en"
                }
            },
            "altLabels": {
                "predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
                "type": "property",
                "csv": "|",
                "decorate": {
                    "xml:lang": "en"
                }
            },
            "types": {
                "predicate": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
                "type": "relation",
                "csv": "|"
            }
        }
    },
    "ESCO (pure SPARQL 1.1)": {
        "query": "select ?target ?label (group_concat(distinct(?labels); separator=\"| \") as ?altLabels) (group_concat(distinct(?ttypes); separator=\"| \") as ?types)\nwhere { \n{ ?target a <http://ec.europa.eu/esco/model#Occupation> . } \nUNION\n{ ?target a <http://ec.europa.eu/esco/model#Skill> . } \n?target <http://www.w3.org/2008/05/skos-xl#prefLabel> ?thing3. ?thing3 <http://www.w3.org/2008/05/skos-xl#literalForm> ?label .\n?target <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?ttypes .\n{ ?target <http://www.w3.org/2008/05/skos-xl#prefLabel> ?thing1. \n?thing1 <http://www.w3.org/2008/05/skos-xl#literalForm> ?plabels . \n} UNION\n{ ?target <http://www.w3.org/2008/05/skos-xl#altLabel> ?thing2.\n?thing2 <http://www.w3.org/2008/05/skos-xl#literalForm> ?plabels .\n} \nFILTER (regex(?plabels,\".*$searchTerm.*\",\"i\")) . \nFILTER (lang(?plabels) = \"en\") . \nOPTIONAL {?target <http://www.w3.org/2008/05/skos-xl#altLabel> ?thing4\n. ?thing4 <http://www.w3.org/2008/05/skos-xl#literalForm> ?labels\n. FILTER (lang (?labels) = \"en\") \n}\nFILTER (lang (?label) = \"en\") \n} GROUP BY ?target ?label",
        "uriToUrl": "'https://ec.europa.eu/esco/web/guest/concept/-/concept/thing/en/' +uri",
        "labelProperty": "label",
        "labelPredicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
        "storedInfo": {
            "label": {
                "predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
                "type": "property",
                "decorate": {
                    "xml:lang": "en"
                }
            },
            "altLabels": {
                "predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
                "type": "property",
                "csv": "|",
                "decorate": {
                    "xml:lang": "en"
                }
            },
            "types": {
                "predicate": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
                "type": "relation",
                "csv": "|"
            }
        }
    },
    "ESCO (fuseki, text index)": {
        "query": "select ?target ?label (group_concat(distinct(?labels); separator=\"| \") as ?altLabels) (group_concat(distinct(?ttypes); separator=\"| \") as ?types)\nwhere { \n{ ?target a <http://ec.europa.eu/esco/model#Occupation> . } \nUNION\n{ ?target a <http://ec.europa.eu/esco/model#Skill> . } \n?target <http://www.w3.org/2008/05/skos-xl#prefLabel> ?thing3. ?thing3 <http://www.w3.org/2008/05/skos-xl#literalForm> ?label .\n?target <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?ttypes .\n?target <http://jena.apache.org/text#query> \"$searchTerm\". \nOPTIONAL {?target <http://www.w3.org/2008/05/skos-xl#altLabel> ?thing4\n. ?thing4 <http://www.w3.org/2008/05/skos-xl#literalForm> ?labels\n. FILTER (lang (?labels) = \"en\") \n}\nFILTER (lang (?label) = \"en\") \n} GROUP BY ?target ?label",
        "uriToUrl": "'https://ec.europa.eu/esco/web/guest/concept/-/concept/thing/en/' +uri",
        "labelProperty": "label",
        "labelPredicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
        "storedInfo": {
            "label": {
                "predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
                "type": "property",
                "decorate": {
                    "xml:lang": "en"
                }
            },
            "altLabels": {
                "predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
                "type": "property",
                "csv": "|",
                "decorate": {
                    "xml:lang": "en"
                }
            },
            "types": {
                "predicate": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
                "type": "relation",
                "csv": "|"
            }
        }
    }
}
{
“sparql”:http://localhost:8890/sparql",
“文件URI”:“,
“简介”:“ESCO(演奏家)”,
“概况”:{
“埃斯科(演奏家)”:{
“查询”:“选择目标”标签(组(不同的(?标签);分隔符=\“\”)作为标签)(组(不同的(?类型);分隔符=\“\”)作为类型)\n其中{\n{目标a.}\n离子\n{目标a.\n?目标thing3.?thing3?标签。\n?目标?类型。\n{目标?thing1.\n?thing1?格子。\n过滤器(bif:包含(?格子)“$searchTerm*”))。\n过滤器(lang(?plabels)=“en\”。\n操作\n{target?thing2。\n?thing2?plabels。\n过滤器(bif:contains(?plabels,\“$searchTerm*”)。\n过滤器(lang(?plabels)=“en\”。\n}\n可选的{target thing4\n?thing4?标签\n.过滤器(lang(?)标签)=“en\”。\n过滤器(lang(?)分组依据?目标?标签“,
“乌里图尔”:“乌里图尔”https://ec.europa.eu/esco/web/guest/concept/-/concept/thing/en/“+uri”,
“labelProperty”:“label”,
“labelPredicate”:http://www.w3.org/2004/02/skos/core#prefLabel",
“storedInfo”:{
“标签”:{
“谓词”:”http://www.w3.org/2004/02/skos/core#prefLabel",
“类型”:“属性”,
“装饰”:{
“xml:lang”:“en”
}
},
“altLabels”:{
“谓词”:”http://www.w3.org/2004/02/skos/core#altLabel",
“类型”:“属性”,
“csv”:“|”,
“装饰”:{
“xml:lang”:“en”
}
},
“类型”:{
“谓词”:”http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
“类型”:“关系”,
“csv”:“|”
}
}
},
“默认(skos)”:{
“查询”:“选择目标”标签(组集合(不同的(?标签);分隔符=\“\”)作为替代标签)\n(组集合(不同的(?类型);分隔符=\“\”)作为类型),其中{\n目标标签。\n目标类型。\n{目标标签。\n过滤器(bif:contains(?plabels,\“$searchTerm*”)。\n联合{\n目标标签。\n过滤器(bif:contains)(?plabels,\“'$searchTerm*'\”)。\n}可选的{\n?目标?标签。\n筛选器(lang(?标签)=“en\”)}\n筛选器(lang(?标签)=“en\”)\n}按目标?标签分组“,
“uriToUrl”:“uri”,
“labelProperty”:“label”,
“labelPredicate”:http://www.w3.org/2004/02/skos/core#prefLabel",
“storedInfo”:{
“标签”:{
“谓词”:”http://www.w3.org/2004/02/skos/core#prefLabel",
“类型”:“属性”,
“装饰”:{
“xml:lang”:“en”
}
},
“altLabels”:{
“谓词”:”http://www.w3.org/2004/02/skos/core#altLabel",
“类型”:“属性”,
“csv”:“|”,
“装饰”:{
“xml:lang”:“en”
}
},
“类型”:{
“谓词”:”http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
“类型”:“关系”,
“csv”:“|”
}
}
},
“ESCO(纯SPARQL 1.1)”:{
“查询”:“选择目标”标签(组(不同的(?标签);分隔符=\“\”)作为替代标签)(组(不同的(?类型);分隔符=\“\”)作为类型)\n在{\n{目标a.}\n区域\n{目标a.}\n目标3.?thing3?标签。\n?目标?T类型。\n{目标?thing1.\n?thing1?格子。\n}UNION\n{target?thing2.\n?thing2?plabels.\n}\n过滤器(regex(?plabels,\“*$searchTerm.*\”,\“i”)。\n过滤器(lang(?plabels)=“en\”。\n可选的{target?thing4\n.?thing4?标签\n.过滤器(lang(?labels)=“en\”\n}\n}\n过滤器(lang label)=“en\”)按目标标签分组“,
“乌里图尔”:“乌里图尔”https://ec.europa.eu/esco/web/guest/concept/-/concept/thing/en/“+uri”,
“labelProperty”:“label”,
“labelPredicate”:http://www.w3.org/2004/02/skos/core#prefLabel",
“storedInfo”:{
“标签”:{
“谓词”:”http://www.w3.org/2004/02/skos/core#prefLabel",
“类型”:“属性”,
“装饰”:{
“xml:lang”:“en”
}
},
“altLabels”:{
“谓词”:”http://www.w3.org/2004/02/skos/core#altLabel",
“类型”:“属性”,
“csv”:“|”,
“装饰”:{
“xml:lang”:“en”
}
},
“类型”:{
“谓词”:”http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
“类型”:“关系”,
“csv”:“|”
}
}
},
“ESCO(fuseki,文本索引)”:{
“查询”:“选择目标”标签(组集合(不同的(?标签);分隔符=\“\”)作为可选标签)(组集合(不同的(?类型);分隔符=\“\”)作为类型)\n此处{\n{目标a.}\n名称\n{目标a.}\n目标3.?thing3?标签。\n?目标?类型。\n?目标\“$searchTerm\”\n可选{target?thing4\n.?thing4?labels\n.FILTER(lang(?labels)=“en\”)\n}\n过滤器(lang(?label)=“en\”)\n}按目标标签分组“,
“乌里图尔”:“乌里图尔”https://ec.europa.eu/esco/web/guest/concept/-/concept/thing/en/“+uri”,
“labelProperty”:“label”,
“labelPredicate”:http://www.w3.org/2004/02/skos/core#prefLabel",
“storedInfo”:{
“标签”:{
“谓词”:”http://www.w3.org/2004/02/skos/core#prefLabel",
“类型”:“属性”,
“装饰”:{
“xml:lang”:“en”