<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="/wikid/docs/xsl/mwCollections/CollectionWikiPages/display.xsl" type="text/xsl"?>

<!--
This resource container holds the product of the resolution request
-->
<resource xmlns:config="info:sid/localhost:CollectionSimpleSchemas:config" xmlns:explain="http://explain.z3950.org/dtd/2.0/" xmlns:srw="http://www.loc.gov/zing/srw/" xmlns:wiki="info:sid/localhost:CollectionSimpleSchemas:wiki" xmlns:wr="http://errol.oclc.org/oai:xmlregistry.oclc.org:errol/WikiRepository" xmlns:xlink="http://www.w3.org/TR/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--
This is an echo of the request information this stylesheet used to produce the resolution product
-->
<uri-context>
<srwIdentifier>info:sid/localhost:CollectionWikiPages:WikiDApis</srwIdentifier>
<collectionURI>info:sid/localhost:CollectionWikiPages</collectionURI>
<repository-identifier>CollectionWikiPages</repository-identifier>
<srwURL>http://alcme.oclc.org:80/wikid/search/WikiDb.localhost</srwURL>
<local-identifier>WikiDApis</local-identifier>
<action>display</action>
</uri-context>
<!--
This is the collection configuration record
-->
<record xmlns="info:sid/localhost:CollectionSimpleSchemas:config" xsi:schemaLocation="info:sid/localhost:CollectionSimpleSchemas:config http://alcme.oclc.org/metawiki/raw/info:sid/localhost:CollectionSimpleSchemas:config.xsd">
<repositoryName>Wiki Pages</repositoryName>
<localIdentifierType>userAssigned</localIdentifierType>
<adminEmail>mailto:jyoung@oclc.org</adminEmail>
<defaultXSL>no</defaultXSL>
<schemaURI recordPrefix="wiki">info:sid/localhost:CollectionSimpleSchemas:wiki</schemaURI>
<crosswalkSchemaURI recordPrefix="xhtml">info:sid/localhost:CollectionExternalSchemas:xhtml</crosswalkSchemaURI>
<defaultSchemaURI>info:sid/localhost:CollectionExternalSchemas:xhtml</defaultSchemaURI>
</record>
<!--
There is a local-identifier, so this URI must identify an item in a collection
-->
<!--
This is the searchRetrieveResponse for the item's Deposit record
-->
<content>
<searchRetrieveResponse xmlns="http://www.loc.gov/zing/srw/">
<version>1.1</version>
<numberOfRecords>1</numberOfRecords>
<resultSetId>815zzo</resultSetId>
<resultSetIdleTime>300</resultSetIdleTime>
<records xmlns:ns1="http://www.loc.gov/zing/srw/">
<record>
<recordSchema>http://www.oclc.org/schemas/WikiRepository</recordSchema>
<recordPacking>xml</recordPacking>
<recordData>
<wr:Deposit xmlns="http://www.w3.org/TR/xhtml1/strict">
<wr:browserPath>http://alcme.oclc.org:80/wikid/docs/WikiRepository</wr:browserPath>
<wr:refID>info:sid/localhost:CollectionWikiPages:WikiDApis</wr:refID>
<wr:refIDPrefix/>
<wr:userName>anonymous</wr:userName>
<wr:collection>CollectionWikiPages</wr:collection>
<wr:relativePath>2006/04/28/10</wr:relativePath>
<wr:fullRefID>inf_3asid_2flocalhost_3aCollectionWikiPages_3aWikiDApis_5f20060428102931020</wr:fullRefID>
<wr:mimeType>text/xml</wr:mimeType>
<wr:sort>CollectionWikiPages:WikiDApis</wr:sort>
<wr:dateCreated>2005-12-08</wr:dateCreated>
<wr:datestamp>2006-04-28</wr:datestamp>
<wr:oldDate/>
</wr:Deposit>
</recordData>
<recordPosition>1</recordPosition>
</record>
</records>
<echoedSearchRetrieveRequest xmlns:ns2="http://www.loc.gov/zing/srw/">
<version>1.1</version>
<query>repos.hasDate = "hasdate" and oai.identifier exact "info:sid/localhost:CollectionWikiPages:WikiDApis"</query>
<xQuery>
<ns3:searchClause xmlns:ns3="http://www.loc.gov/zing/cql/xcql/">
<ns3:index>cql.any</ns3:index>
<ns3:relation>
<ns3:value>=</ns3:value>
</ns3:relation>
<ns3:term>huh?</ns3:term>
</ns3:searchClause>
</xQuery>
<startRecord>1</startRecord>
<maximumRecords>1</maximumRecords>
<recordPacking>xml</recordPacking>
<recordSchema>default</recordSchema>
</echoedSearchRetrieveRequest>
</searchRetrieveResponse>
<!--
This is the datestamp for the Deposit
-->
<datestamp>2006-04-28</datestamp>
<!--
This is the URL for the content
-->
<contentURL>http://alcme.oclc.org:80/wikid/docs/WikiRepository/2006/04/28/10/inf_3asid_2flocalhost_3aCollectionWikiPages_3aWikiDApis_5f20060428102931020</contentURL>
<!--
Here is the record content
-->
<record>
<record xmlns="info:sid/localhost:CollectionSimpleSchemas:wiki" xsi:schemaLocation="info:sid/localhost:CollectionSimpleSchemas:wiki http://alcme.oclc.org:80/wikid/raw/info:sid/localhost:CollectionSimpleSchemas:wiki.xsd">
<raw>= WikiD APIs =
Here are descriptions and examples of various APIs into the WikiD system.
== Update APIs ==
Please see WikiDUpdateApis for details.
== Wiki API ==
This API is designed to mimic conventional wiki URLs. There are four possible variations:
	1. &lt;baseURL&gt;: Refers to CollectionWikiPages:FrontPage (e.g. http://alcme.oclc.org/wikid/'''''')
	1. &lt;baseURL&gt; + &lt;Item''''''Id&gt;: Refers to an item in CollectionWikiPages (e.g. http://alcme.oclc.org/wikid/FrontPage'''''')
	1. &lt;baseURL&gt; + &lt;Collection''''''Id&gt; + ':' + &lt;Item''''''Id&gt; + ('?' &lt;params&gt;): Refers to an item in the specified collection (e.g. http://alcme.oclc.org/wikid/CollectionExternalSchemas:mets?action=edit'''''')
	1. &lt;baseURL&gt; + &lt;URI&gt;: Refers to a resource that may or may not be resolvable by the WikiD installation (e.g. http://alcme.oclc.org/wikid/urn:ISBN:0123456789'''''')
(Note that variant 1 is a shorthand for 2, 2 is a shorthand for 3, etc. Also note that "CollectionWikiPages:FrontPage" gets transformed into a URI behind the scenes: info:sid/localhost:CollectionWikiPages:FrontPage'''''')

Key:
* "&lt;baseURL&gt;" represents the baseURL of the WikiD context (e.g. http://alcme.oclc.org/wikid/'''''')
* "&lt;Collection''''''Id&gt;" represents a collection existing within that WikiD installation
* "&lt;Item''''''Id&gt;" represents an item in a collection.
* "&lt;params&gt;" represents variable Wiki-style parameters
== OpenURL 1.0 API ==
This is the OpenURL 1.0 API.
* http://alcme.oclc.org/wikid/resolver
* Note that Wiki-style requsts are immediately transformed into an OpenURL 1.0 equivalent and handed off to an internal resolver:
 http:''''''//alcme.oclc.org/wikid/resolver?url_ver=Z39.88-2004
 &amp;url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx
 &amp;ctx_enc=info%3Aofi%2Fenc%3AUTF-8
 &amp;rft_id=info%3Asid%2Flocalhost%3ACollectionExternalSchemas%3Amets
 &amp;svc_dat=action%3Dedit
 &amp;rfr_id=info%3Asid%2Foclc.org%3Areferrer%2FWikiD
** OpenURL 1.0 parameter breakdown:
*** baseURL: http://alcme.oclc.org/wikid/resolver
*** url_ver: Z39.88-2004
*** url_ctx_fmt: info:ofi/fmt:kev:mtx:ctx
*** ctx_enc: info:ofi/enc:UTF-8
*** '''rft_id: info:sid/localhost:CollectionExternalSchemas:mets'''
*** '''svc_dat: action=edit'''
*** '''rfr_id: info:sid/oclc.org:referrer/WikiD'''

== SRW/U API ==
This is the SRW/U API.
* http://alcme.oclc.org/wikid/search/WikiDb.localhost
== Service API (e.g. RSS and OAI) ==
This API is similar to the Wiki API except that "action=foo" gets represented as a ".foo" suffix. This was necessary because some processors (e.g. OAI harvesters) can't handle for former variation.
* RSS
** http://alcme.oclc.org/wikid/service/CollectionWikiPages.rss
** Equivalent to: http://alcme.oclc.org/wikid/CollectionWikiPages?action=rss
* OAI-PMH
** http://alcme.oclc.org/wikid/service/CollectionWikiPages.oai
** Equivalent to: http://alcme.oclc.org/wikid/CollectionWikiPages?action=oai
== Raw content API ==
This API is similar to the Service API, except that the ".foo" extension gets interpreted as "action=raw&amp;recordPrefix=foo" rather than "action=foo". Again, this is because some processors can't handle the parameterized version
* http://alcme.oclc.org/wikid/raw/CollectionSimpleSchemas:wiki.xsd
* Equivalent to: http://alcme.oclc.org/wikid/CollectionSimpleSchemas:wiki?action=raw&amp;recordPrefix=xsd
== unAPI API ==
All WikiD collections support unAPI (http://www.code4lib.org/specs/unapi/revision-1''''''). For example:
* http://alcme.oclc.org/wikid/CollectionGsafd - Contains unAPI links in the HTML
* http://alcme.oclc.org/wikid/unapi/CollectionGsafd - is the unAPI baseURL for CollectionGsafd
* http://alcme.oclc.org/wikid/unapi/CollectionGsafd?uri=info:sid/localhost:CollectionGsafd:GSAFD000001 - returns a status-code 300 listing the available formats for an item in the collection
* http://alcme.oclc.org/wikid/unapi/CollectionGsafd?uri=info:sid/localhost:CollectionGsafd:GSAFD000001&amp;format=zthes - returns a zthes record for this item</raw>
</record>
</record>
</content>
<displayContent>
<html xmlns="http://www.w3.org/1999/xhtml">
<body><h1> WikiD APIs </h1>
Here are descriptions and examples of various APIs into the <a href="WikiD">WikiD</a> system.
<h2> Update APIs </h2>
Please see <a href="WikiDUpdateApis">WikiDUpdateApis</a> for details.
<h2> Wiki API </h2>
This API is designed to mimic conventional wiki URLs. There are four possible variations:
<ol>
<li> &lt;baseURL&gt;: Refers to <a href="./CollectionWikiPages:FrontPage">CollectionWikiPages:FrontPage</a> (e.g. <a href="http://alcme.oclc.org/wikid/">http://alcme.oclc.org/wikid/</a>)</li>
<li> &lt;baseURL&gt; + &lt;ItemId&gt;: Refers to an item in <a href="./CollectionWikiPages">CollectionWikiPages</a> (e.g. <a href="http://alcme.oclc.org/wikid/FrontPage">http://alcme.oclc.org/wikid/FrontPage</a>)</li>
<li> &lt;baseURL&gt; + &lt;CollectionId&gt; + ':' + &lt;ItemId&gt; + ('?' &lt;params&gt;): Refers to an item in the specified collection (e.g. <a href="http://alcme.oclc.org/wikid/CollectionExternalSchemas:mets?action=edit">http://alcme.oclc.org/wikid/CollectionExternalSchemas:mets?action=edit</a>)</li>
<li> &lt;baseURL&gt; + &lt;URI&gt;: Refers to a resource that may or may not be resolvable by the <a href="WikiD">WikiD</a> installation (e.g. <a href="http://alcme.oclc.org/wikid/urn:ISBN:0123456789">http://alcme.oclc.org/wikid/urn:ISBN:0123456789</a>)</li>
</ol>

(Note that variant 1 is a shorthand for 2, 2 is a shorthand for 3, etc. Also note that &quot;<a href="./CollectionWikiPages:FrontPage">CollectionWikiPages:FrontPage</a>&quot; gets transformed into a URI behind the scenes: <a href="./info:sid/localhost:CollectionWikiPages:FrontPage">info:sid/localhost:CollectionWikiPages:FrontPage</a>)<p></p>
Key:
<ul>
<li> &quot;&lt;baseURL&gt;&quot; represents the baseURL of the <a href="WikiD">WikiD</a> context (e.g. <a href="http://alcme.oclc.org/wikid/">http://alcme.oclc.org/wikid/</a>)</li>
<li> &quot;&lt;CollectionId&gt;&quot; represents a collection existing within that <a href="WikiD">WikiD</a> installation</li>
<li> &quot;&lt;ItemId&gt;&quot; represents an item in a collection.</li>
<li> &quot;&lt;params&gt;&quot; represents variable Wiki-style parameters</li>
</ul>

<h2> OpenURL 1.0 API </h2>
This is the OpenURL 1.0 API.
<ul>
<li> <a href="http://alcme.oclc.org/wikid/resolver">http://alcme.oclc.org/wikid/resolver</a></li>
<li> Note that Wiki-style requsts are immediately transformed into an OpenURL 1.0 equivalent and handed off to an internal resolver:</li>
</ul>

<pre>
 http://alcme.oclc.org/wikid/resolver?url_ver=Z39.88-2004
 &amp;url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx
 &amp;ctx_enc=info%3Aofi%2Fenc%3AUTF-8
 &amp;rft_id=info%3Asid%2Flocalhost%3ACollectionExternalSchemas%3Amets
 &amp;svc_dat=action%3Dedit
 &amp;rfr_id=info%3Asid%2Foclc.org%3Areferrer%2FWikiD</pre>

<ul>
<ul>
<li> OpenURL 1.0 parameter breakdown:
<ul>
<li> baseURL: <a href="http://alcme.oclc.org/wikid/resolver">http://alcme.oclc.org/wikid/resolver</a></li>
<li> url_ver: Z39.88-2004</li>
<li> url_ctx_fmt: <a href="./info:ofi/fmt:kev:mtx:ctx">info:ofi/fmt:kev:mtx:ctx</a></li>
<li> ctx_enc: <a href="./info:ofi/enc:UTF-8">info:ofi/enc:UTF-8</a></li>
<li> <strong>rft_id: <a href="./info:sid/localhost:CollectionExternalSchemas:mets">info:sid/localhost:CollectionExternalSchemas:mets</a></strong></li>
<li> <strong>svc_dat: action=edit</strong></li>
<li> <strong>rfr_id: <a href="./info:sid/oclc.org:referrer/WikiD">info:sid/oclc.org:referrer/WikiD</a></strong></li>
</ul>
</li>
</ul>
</ul>
<p></p>
<h2> SRW/U API </h2>
This is the SRW/U API.
<ul>
<li> <a href="http://alcme.oclc.org/wikid/search/WikiDb.localhost">http://alcme.oclc.org/wikid/search/WikiDb.localhost</a></li>
</ul>

<h2> Service API (e.g. RSS and OAI) </h2>
This API is similar to the Wiki API except that &quot;action=foo&quot; gets represented as a &quot;.foo&quot; suffix. This was necessary because some processors (e.g. OAI harvesters) can't handle for former variation.
<ul>
<li> RSS
<ul>
<li> <a href="http://alcme.oclc.org/wikid/service/CollectionWikiPages.rss">http://alcme.oclc.org/wikid/service/CollectionWikiPages.rss</a></li>
<li> Equivalent to: <a href="http://alcme.oclc.org/wikid/CollectionWikiPages?action=rss">http://alcme.oclc.org/wikid/CollectionWikiPages?action=rss</a></li>
</ul>
</li>
<li> OAI-PMH
<ul>
<li> <a href="http://alcme.oclc.org/wikid/service/CollectionWikiPages.oai">http://alcme.oclc.org/wikid/service/CollectionWikiPages.oai</a></li>
<li> Equivalent to: <a href="http://alcme.oclc.org/wikid/CollectionWikiPages?action=oai">http://alcme.oclc.org/wikid/CollectionWikiPages?action=oai</a></li>
</ul>
</li>
</ul>

<h2> Raw content API </h2>
This API is similar to the Service API, except that the &quot;.foo&quot; extension gets interpreted as &quot;action=raw&amp;recordPrefix=foo&quot; rather than &quot;action=foo&quot;. Again, this is because some processors can't handle the parameterized version
<ul>
<li> <a href="http://alcme.oclc.org/wikid/raw/CollectionSimpleSchemas:wiki.xsd">http://alcme.oclc.org/wikid/raw/CollectionSimpleSchemas:wiki.xsd</a></li>
<li> Equivalent to: <a href="http://alcme.oclc.org/wikid/CollectionSimpleSchemas:wiki?action=raw&amp;recordPrefix=xsd">http://alcme.oclc.org/wikid/CollectionSimpleSchemas:wiki?action=raw&amp;recordPrefix=xsd</a></li>
</ul>

<h2> unAPI API </h2>
All <a href="WikiD">WikiD</a> collections support unAPI (<a href="http://www.code4lib.org/specs/unapi/revision-1">http://www.code4lib.org/specs/unapi/revision-1</a>). For example:
<ul>
<li> <a href="http://alcme.oclc.org/wikid/CollectionGsafd">http://alcme.oclc.org/wikid/CollectionGsafd</a> - Contains unAPI links in the HTML</li>
<li> <a href="http://alcme.oclc.org/wikid/unapi/CollectionGsafd">http://alcme.oclc.org/wikid/unapi/CollectionGsafd</a> - is the unAPI baseURL for <a href="./CollectionGsafd">CollectionGsafd</a></li>
<li> <a href="http://alcme.oclc.org/wikid/unapi/CollectionGsafd?uri=info:sid/localhost:CollectionGsafd:GSAFD000001">http://alcme.oclc.org/wikid/unapi/CollectionGsafd?uri=info:sid/localhost:CollectionGsafd:GSAFD000001</a> - returns a status-code 300 listing the available formats for an item in the collection</li>
<li> <a href="http://alcme.oclc.org/wikid/unapi/CollectionGsafd?uri=info:sid/localhost:CollectionGsafd:GSAFD000001&amp;format=zthes">http://alcme.oclc.org/wikid/unapi/CollectionGsafd?uri=info:sid/localhost:CollectionGsafd:GSAFD000001&amp;format=zthes</a> - returns a zthes record for this item</li>
</ul>
</body>
</html>
</displayContent>
</resource>
