How to get only Wikidata wdt (or other) predicates

2019-08-25 07:22发布

问题:

Very new to this, so might have some terms wrong. I want to get a subset of triples for an entity (or entities). For example, this gives me 856 (as of now) triples for these two entities, including some labels and also /prop/direct/, /prop/direct-normalized/, and /prop/ predicates:

CONSTRUCT {?s ?p ?o.}
WHERE {
VALUES ?s {wd:Q937 wd:Q670439}
{?s ?p ?o.}
}

Try it

But what if I only want the /prop/direct/ (wdt) triples? Would I use FILTER in some way? I suspect I'm missing the correct way to specify these in the first place. I'd like to stick with the CONSTRUCT verb. Thanks.