query-20dc22ed6435dd4fcbcad3eb0f078093
Is Playmates.com the only database of its kind out there? then I leave the following message here. According to this query: (Q14942913)WikiProject Pornography As there does not seem to be a
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?human ?humanLabel ?playmate_id
WHERE
{ 
  {
    # Human
    ?human wdt:P31 wd:Q5.
    # Playmate
    ?human wdt:P106 wd:Q728711.
    # with optional id in playmates.com
    OPTIONAL { ?human wdt:P5346 ?playmate_id }
  }
  UNION
  { 
    # Additional humans with id in playmates.com
    ?human wdt:P5346 ?playmate_id 
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?human"):::projected 
  v2("?playmate_id"):::projected 
  c4(["wd:Q728711"]):::iri 
  c7(["bd:serviceParam"]):::iri 
  c2(["wd:Q5"]):::iri 
  c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal 
  subgraph union0[" Union "]
  subgraph union0l[" "]
    style union0l fill:#abf,stroke-dasharray: 3 3;
    v1 --"wdt:P5346"-->  v2
  end
  subgraph union0r[" "]
    style union0r fill:#abf,stroke-dasharray: 3 3;
    v1 --"wdt:P31"-->  c2
    v1 --"wdt:P106"-->  c4
    subgraph optional0["(optional)"]
    style optional0 fill:#bbf,stroke-dasharray: 5 5;
      v1 -."wdt:P5346".->  v2
    end
  end
  union0r <== or ==> union0l
  end
  subgraph s1["http://wikiba.se/ontology#label"]
    style s1 stroke-width:4px;
    c7 --"wikibase:language"-->  c9
  end