-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New script to find OpenAthens entities that exist in the UK Federatio…
…n metadata but not in the Eduserv metadata.
- Loading branch information
Gary Gray
authored and
Gary Gray
committed
Jul 14, 2010
1 parent
8e14b3f
commit cfddb9c
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| xquery version "1.0"; | ||
| declare default element namespace "urn:oasis:names:tc:SAML:2.0:metadata"; | ||
| (:This xquery script finds all Eduserv entities that appear in UK Federation metadata | ||
| :but not in the Eduserv metadata. | ||
| :It returns the UK Federation ID and the entityID | ||
| : | ||
| :To run this, you can use the xquery debug perspective in Eclipse, or in Oxygen. | ||
| :You could also download the free version of Saxon from http://saxon.sourceforge.net/ | ||
| :and include saxon8.jar in your classpath and then run | ||
| : | ||
| :java net.sf.saxon.query find_OpenAthens_entities_not_in_Eduserv_metadata.xq | ||
| : | ||
| :The output is an XML file listing the entityID's of Eduserv entities that appear in | ||
| :UK Federation metadata but not in the Eduserv metadata. | ||
| : | ||
| :Gary Gray | ||
| :13 July 2010 | ||
| :) | ||
| <Entities> | ||
| { | ||
| for $f in doc("http://metadata.ukfederation.org.uk/ukfederation-metadata.xml")/EntitiesDescriptor/EntityDescriptor[Organization/OrganizationName='Eduserv'] | ||
| where $f/@entityID[not(. = /doc("https://auth.athensams.net/saml/metadata?name=ukfederation")/EntitiesDescriptor/EntityDescriptor/@entityID)] | ||
| return | ||
| <Entity ID="{data($f/@ID)}">{data($f/@entityID)} | ||
| </Entity> | ||
| } | ||
| </Entities> |