Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Org.eclipse.higgins.idas.cp.rdf
Revision as of 11:07, 15 December 2008 by Unnamed Poltroon (Talk)
{{#eclipseproject:technology.higginshttp://wiki.eclipse.org/Category:Higgins_Components}}
The RDF CP is a very simple, read-only IdAS Context Provider that can retrieve an RDF document from a URI and expose it as a Higgins Context.
Contents
Details
- Javadoc: Javadoc
- Status: first code in Higgins B-1-1-M3
- Language: Java
- Packaging: OSGI bundle
Plan
- no plan
Configuration
The RDF CP expects a single configuration setting in its ContextId via the Configuration API: uri
Example configuration using an XML configuration file:
<Configuration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://higgins.eclipse.org/Configuration" xmlns:htf="http://higgins.eclipse.org/Configuration"> xsd:schemaLocation="http://higgins.eclipse.org/Configuration Configuration.xsd "> <!-- The setting handlers are classes that consume Setting elements where the Type matches and generate an object of the Class --> <SettingHandlers> <SettingHandler Type="htf:map" Class="java.util.Map" Handler="org.eclipse.higgins.configuration.xml.MapHandler"/> <SettingHandler Type="htf:list" Class="java.util.List" Handler="org.eclipse.higgins.configuration.xml.ListHandler"/> <SettingHandler Type="xsd:string" Class="java.lang.String" Handler="org.eclipse.higgins.configuration.xml.StringHandler"/> <SettingHandler Type="htf:classinstance" Class="java.lang.Object" Handler="org.eclipse.higgins.configuration.xml.ClassInstanceHandler"/> <SettingHandler Type="htf:classsingleton" Class="java.lang.Object" Handler="org.eclipse.higgins.configuration.xml.ClassSingletonHandler"/> <SettingHandler Type="htf:uri" Class="java.net.URI" Handler="org.eclipse.higgins.configuration.xml.URIHandler"/> </SettingHandlers> <Setting Name="DeploymentConfiguration" Type="htf:map"> <Setting Name="ComponentSettings" Type="htf:map"> <Setting Name="RDFContextFactory" Type="htf:map" /> <Setting Name="IdASRegistry" Type="htf:map"> <Setting Name="ContextFactoryInstancesList" Type="htf:list"> <Setting Name="RDFContextFactory" Type="htf:map"> <Setting Name="Instance" Type="htf:string">RDFContextFactory</Setting> <Setting Name="ContextTypes" Type="htf:list"> <Setting Name="ContextType1" Type="htf:string">$context$mime*application*rdf.xml</Setting> </Setting> </Setting> </Setting> <Setting Name="ContextIdsList" Type="htf:list"> <Setting Name="ContextId1" Type="htf:map"> <Setting Name="ContextId" Type="xsd:string">rdfTestContext</Setting> <Setting Name="ContextTypes" Type="htf:list"> <Setting Name="HigginsContextType" Type="xsd:string">$context$mime*application*rdf.xml</Setting> </Setting> <Setting Name="uris" Type="htf:list"> <Setting Name="uri1" Type="htf:uri">http://myopenlink.net/dataspace/person/danieljohnlewis</Setting> </Setting> </Setting> </Setting> </Setting> </Setting> <!-- The name of the class that implements the RDF Context Provider --> <Setting Name="RDFContextFactory" Type="htf:classinstance">org.eclipse.higgins.idas.cp.rdf.RDFContextFactory</Setting> <!-- The name of the class that provides the factory for the class that implements the IdASRegistry --> <Setting Name="IdASRegistry" Type="htf:classsingleton">org.eclipse.higgins.idas.registry.IdASRegistry</Setting> </Setting> </Configuration>
Service
- The RDF CP does not require authentication materials. It assumes that anyone can retrieve the URI with the RDF data.
- The RDF CP sends an "Accept: application/rdf+xml" HTTP header when retrieving the RDF data.
- The RDF CP is suitable for reading RDF data from Hash and 303 Cool URIs.
- The RDF CP is useful in conjunction with IdAS UDI Resolution, since 303 and Hash Cool URIs are one type of Entity UDI. However, the RDF CP does not depend on UDI.
- The recommended Context Type for contexts opened with the RDF CP is $context$mime*application*rdf.xml.
See Also
- Identity Attribute Service --overview of IdAS
- Components: IdAS Component --lists IdAS Component sub-projects and as well as projects for available Context Providers