<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>FW: [Idschemas] FYI Schemat Consumer</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>This seems relevant to the current AX discussion.<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Mark Wahl [<A HREF="mailto:Mark.Wahl@informed-control.com">mailto:Mark.Wahl@informed-control.com</A>]<BR>
Sent: Saturday, April 07, 2007 02:34 PM Pacific Standard Time<BR>
To: ID Schemas<BR>
Subject: [Idschemas] FYI Schemat Consumer<BR>
<BR>
<BR>
Today we (Informed Control Inc.) packaged up the source code for<BR>
Schemat Consumer, a small, open source, proof of concept library<BR>
for attribute type metadata parsing.<BR>
<BR>
The Schemat Consumer provides applications in an identity metasystem<BR>
with a simple Java API for retrieving the metadata of URI-named attribute<BR>
types. (It is intended for applications which are not already RDF-aware,<BR>
and just need to get additional details on unrecognized identity attributes.)<BR>
<BR>
SchematConsumer sc = SchematConsumer.getInstance();<BR>
// ...<BR>
IAttributeTypeMetadataClasses iatmc =<BR>
sc.findAttributeTypeMetadataFromSubjectUri(new URI(attribute_type));<BR>
CommonAttributeTypeMetadata c = new CommonAttributeTypeMetadata(iatmc);<BR>
<BR>
The CommonAttributeTypeMetadata implements get-methods for a subset of<BR>
the metadata elements defined by W3C, Dublin Core, Higgins and OpenID AX:<BR>
<BR>
String label = c.getLabel(); // get display label for the attribute type<BR>
String comment = c.getComment(); // get display comment for the attribute type<BR>
List seealso = c.getSeeAlsoUriStringsList(); // get URIs of 'see also'<BR>
boolean isequiv = c.isEquivalentToUri(another_attribute_type); // test are two attribute types equivalent?<BR>
List acq_uris = c.getAcquisitionUriStringsList(); // get URIs where to acquire values of this attribute<BR>
List auth_uris = c.getAuthorityUriStringsList(); // get URIs of authorities for this attribute<BR>
String example = c.getValueExampleString(); // get String example value of this attribute<BR>
HigginsValuePropertyDatatype v = c.getHigginsValuePropertyDatatype();<BR>
if (v != null) {<BR>
String pattern = v.getPatternString(); // get regular expression of value syntax<BR>
}<BR>
<BR>
Future versions are anticipated to implement the full set of Identity Schemas<BR>
metadata in <A HREF="http://idschemas.idcommons.net/moin.cgi/MetaData">http://idschemas.idcommons.net/moin.cgi/MetaData</A><BR>
<BR>
Applications can also request an XHTML fragment describing the attribute, or an<BR>
entire schema collection of attributes.<BR>
<BR>
Schemat Consumer wraps the Jakarta HTTP core client library and the HP Labs Jena ARP2<BR>
RDF parser. Currently it implements the http and file URI schemes to<BR>
retrieve the RDF/XML encoding of metadata, and has a cache of metadata to avoid<BR>
frequent retrievals and to support offline operations.<BR>
<BR>
More info at<BR>
<A HREF="http://www.ldap.com/1/spec/schema/ont.shtml">http://www.ldap.com/1/spec/schema/ont.shtml</A><BR>
<A HREF="http://www.ldap.com/1/commentary/wahl/20070407_01.shtml">http://www.ldap.com/1/commentary/wahl/20070407_01.shtml</A><BR>
<BR>
Mark Wahl<BR>
Informed Control Inc.<BR>
<BR>
_______________________________________________<BR>
Idschemas mailing list<BR>
Idschemas@idcommons.net<BR>
<A HREF="http://mail.idcommons.net/cgi-bin/mailman/listinfo/idschemas">http://mail.idcommons.net/cgi-bin/mailman/listinfo/idschemas</A><BR>
</FONT>
</P>
</BODY>
</HTML>