嗨,我有一个 rdf 数据库和一个名为 urn:graph:2d6d3d07-20b0-4050-ada8-43e5655c919a 的图,我想查询该图的以下构造语句,我该怎么做?
# Expand From IRIs
CONSTRUCT {?iri ?predicate ?object .?object a ?object_type .?object <tag:stardog:studio:label> ?object_label_0 .?object rdfs:label ?object_label_1 .?object <http://purl.org/dc/elements/1.1/title> ?object_label_2 .?subject ?predicate_2 ?iri .?subject a ?subject_type .?subject <tag:stardog:studio:label> ?subject_label_0 .?subject rdfs:label ?subject_label_1 .?subject <http://purl.org/dc/elements/1.1/title> ?subject_label_2 .}
WHERE {VALUES (?iri) {(<tag:stardog:api:0.13193948493419416>)}
{ ?iri ?predicate ?object .
OPTIONAL { ?object a ?object_type . }
OPTIONAL { ?object <tag:stardog:studio:label> ?object_label_0 . }
OPTIONAL { ?object rdfs:label ?object_label_1 . }
OPTIONAL { ?object <http://purl.org/dc/elements/1.1/title> ?object_label_2 . }
} UNION {
?subject ?predicate_2 ?iri .
OPTIONAL { ?subject a ?subject_type . }
OPTIONAL { ?subject<tag:stardog:studio:label> ?subject_label_0 . }
OPTIONAL { ?subject rdfs:label ?subject_label_1 . }
OPTIONAL { ?subject <http://purl.org/dc/elements/1.1/title> ?subject_label_2 . }
}
} LIMIT 1000