From cfddb9cce161de0705a9c61b97446e93c3bc55fb Mon Sep 17 00:00:00 2001 From: Gary Gray Date: Wed, 14 Jul 2010 10:55:53 +0000 Subject: [PATCH] New script to find OpenAthens entities that exist in the UK Federation metadata but not in the Eduserv metadata. --- ...Athens_entities_not_in_Eduserv_metadata.xq | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 build/find_OpenAthens_entities_not_in_Eduserv_metadata.xq diff --git a/build/find_OpenAthens_entities_not_in_Eduserv_metadata.xq b/build/find_OpenAthens_entities_not_in_Eduserv_metadata.xq new file mode 100644 index 00000000..e7617b9e --- /dev/null +++ b/build/find_OpenAthens_entities_not_in_Eduserv_metadata.xq @@ -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 + :) + + { +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 +{data($f/@entityID)} + +} + \ No newline at end of file