query-8d3b104a2897838e931f8ec1fb854349
Propertiesinstance of (P31)subclass of (P279)port (P1641)of (P642)
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?protocol ?protocolLabel ?port ?protocolSuiteLabel WHERE {
?protocol wdt:P31/wdt:P279* wd:Q15836568 .
?protocol p:P1641 ?portStatement .
OPTIONAL { ?portStatement ps:P1641 ?port } .
OPTIONAL { ?portStatement pq:P642 ?protocolSuite } .
FILTER (!BOUND(?protocolSuite) || (?protocolSuite != wd:Q8803 && ?protocolSuite != wd:Q11163 && ?protocolSuite != wd:Q576997))
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ASC(?port)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?port"):::projected
v4("?portStatement")
v3("?protocol"):::projected
v2("?protocolSuite")
a1((" "))
c13(["en"]):::literal
c6(["wd:Q15836568"]):::iri
c11(["bd:serviceParam"]):::iri
f0[["(not bound(?protocolSuite) || ?protocolSuite != 'wd:Q8803'?protocolSuite != 'wd:Q11163'?protocolSuite != 'wd:Q576997')"]]
f0 --> v2
v3 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c6
v3 --"p:P1641"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:statement/P1641".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P642".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end