Matcher rule
same-self-asserted-base-url-and-authorization-endpoint-on-one-host
Two servers match when a version of each, written by connects made with one client id, reports one self-asserted base URL and one authorization endpoint, as the servers wrote them, and the base URLs the client used name one host, its port aside. A server with no version matches nothing. Each ordered pair is a row.
The query
PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT DISTINCT ?record ?other
WHERE {
?record a cascade:Server ; cascade:serverBaseUrl ?base .
?version prov:specializationOf ?record ; cascade:connectClientId ?client ;
cascade:selfAssertedBaseUrl ?selfAsserted ; cascade:authorizationEndpoint ?authorization .
?otherVersion prov:specializationOf ?other ; cascade:connectClientId ?client ;
cascade:selfAssertedBaseUrl ?selfAsserted ; cascade:authorizationEndpoint ?authorization .
?other a cascade:Server ; cascade:serverBaseUrl ?otherBase .
FILTER (?record != ?other)
FILTER (REPLACE(STRBEFORE(CONCAT(STRAFTER(?base, "://"), "/"), "/"), ":[0-9]*$", "")
= REPLACE(STRBEFORE(CONCAT(STRAFTER(?otherBase, "://"), "/"), "/"), ":[0-9]*$", ""))
}
Terms it reads
cascade:Server · cascade:authorizationEndpoint · cascade:connectClientId · cascade:selfAssertedBaseUrl · cascade:serverBaseUrl · prov:specializationOf
Rules and decision notes that name it
- M4d. Each version of the rule list names, for each of its rules from R1 to R21, the query that rule's row runs runtime/matcher.feature
queries/matcher/same-self-asserted-base-url-and-authorization-endpoint-on-one-host.rq on GitHub ↗