--
ArthurRyman - 24 May 2011
Focal Point Linked Data Attribute Example
The URI of the Title attribute of the 002:Tsunami 1.1 element resource in the Projects module of the Estimation and Measurement workspace on my machine is
http://ryman.torolab.ibm.com:6080/fp/resources/workspaces/3/modules/13/elements/16/attributes/224
XML
Here is an example element resource in XML format.
<?xml version="1.0" encoding="utf-8"?>
<ns:Title
xmlns:ns="http://ryman.torolab.ibm.com:6080/fp/namespace/workspaces/3/modules/13/attribute"
xmlns:fp="http://schema.ibm.com/focalpoint/resources" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
writable="true"
xsi:schemaLocation="http://ryman.torolab.ibm.com:6080/fp/namespace/workspaces/3/modules/13/attribute http://ryman.torolab.ibm.com:6080/fp/resources/workspaces/3/modules/13/elements/16/attributes/224/attribute.xsd">
<ns:text>
<fp:textValue>Tsunami 1.1</fp:textValue>
<fp:formattedTextValue>Tsunami 1.1</fp:formattedTextValue>
</ns:text>
<ns:alias>5681e8f9-e886-4d4c-98a3-bd0650376182</ns:alias>
<ns:editLink
href="http://ryman.torolab.ibm.com:6080/fp/resources/workspaces/3/modules/13/elements/16/attributes/224"></ns:editLink>
</ns:Title>
Turtle
Here is the RDF Turtle representation.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix fps: <http://schema.ibm.com/focalpoint/resources#> .
<http://ryman.torolab.ibm.com:6080/fp/resources/workspaces/3/modules/13/elements/16/attributes/224>
a fps:Attribute ;
fps:attributeName "Title" ;
dcterms:identifier "5681e8f9-e886-4d4c-98a3-bd0650376182" ;
fps:writeable true ;
rdf:value [
a fps:Text ;
fps:textValue """Tsunami 1.1""" ;
fps:formattedTextValue """<span xmlns='http://www.w3.org/1999/xhtml'>Tsunami 1.1</span>"""^^rdf:XMLLiteral ] .
RDF/XML
Here is the RDF/XML representation.
<?xml version="1.0"?>
<rdf:RDF xmlns:fps="http://schema.ibm.com/focalpoint/resources#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/">
<fps:Attribute
rdf:about="http://ryman.torolab.ibm.com:6080/fp/resources/workspaces/3/modules/13/elements/16/attributes/224">
<fps:attributeName>Title</fps:attributeName>
<dcterms:identifier>5681e8f9-e886-4d4c-98a3-bd0650376182</dcterms:identifier>
<fps:writeable rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</fps:writeable>
<rdf:value>
<fps:Text>
<fps:textValue>Tsunami 1.1</fps:textValue>
<fps:formattedTextValue rdf:parseType="Literal">
<span xmlns="http://www.w3.org/1999/xhtml">Tsunami 1.1</span>
</fps:formattedTextValue>
</fps:Text>
</rdf:value>
</fps:Attribute>
</rdf:RDF>