データのプロパティラベルを表示するにはどうすればよいですか? 私はdbpediaオントロジーで働いています
私はsparqlクエリを作成したい、以下は私のサンプルクエリです。この結果は、データ型またはオブジェクト型のいずれかが混在しているため、データ型property nameにしたい。データ型名についてのみsparqlクエリを作成するにはどうすればよいですか?
SELECT ?p ?pLabel ?domain ?range { ?p rdfs:domain http://dbpedia.org/ontology/Person> . }
例:以下のデータ型の例であるが、私は、私は タイプ名を表示したいだけのデータ型を選択することはできません。
"chat"
'chat'@fr with language tag "fr"
"xyz"^^<http://example.org/ns/userDatatype>
"abc"^^appNS:appDataType
'''The librarian said, "Perhaps you would enjoy 'War and Peace'."'''
1, which is the same as "1"^^xsd:integer
1.3, which is the same as "1.3"^^xsd:decimal
1.300, which is the same as "1.300"^^xsd:decimal
1.0e6, which is the same as "1.0e6"^^xsd:double
true, which is the same as "true"^^xsd:boolean
false, which is the same as "false"^^xsd:boolean
expect to result
(のみのデータ型)をもたらすと期待
typename <- field name
string <- type name
int
boolean
int
double
boolean
SPARQLクエリを作成するには?
私はdatatype()関数が正しいと確信していますが、私の質問は.. ex:http://www.w3.org/2001/XMLSchema#gYea-> String(Result !リテラルTYPEとして)結果を作る方法〜? ;;; -_- ;;;; –
質問とコメントを数回読んだ後、/の代わりに/の代わりに返されたデータ型の_label_をURIにすることを意味すると思います。あれは正しいですか? –