[Oslc-Automation] Adoption issues with inputParameter and outputParameter
Michael F Fiedler
fiedler at us.ibm.com
Tue Aug 21 13:08:24 EDT 2012
You should be able to use blank nodes (which often get represented as
inline nodes when an abbreviated XML writer is used). Example of
unabbreviated XML (hope the xml formatting comes through):
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:oslc_auto="http://open-services.net/ns/auto#"
xmlns:my_ns="http://example.org/ns/my_ns#">
<rdf:Description rdf:about="http://example.org/autoResults/result1">
<dcterms:title>Automation Result 1</dcterms:title>
<dcterms:identifier rdf:datatype=
"http://www.w3.org/2001/XMLSchema#integer">1</dcterms:identifier>
<rdf:type rdf:resource=
"http://open-services.net/ns/auto#AutomationResult"/>
<oslc_auto:state>Complete</oslc_auto:state>
<oslc_auto:verdict>Success</oslc_auto:verdict>
<oslc_auto:pass>true</oslc_auto:pass>
<oslc_auto:reportsOnAutomationPlan rdf:resource=
"http://example.org/autoPlan/plan1"/>
<oslc_auto:inputParameter rdf:nodeID="node1"/>
<oslc_auto:inputParameter rdf:nodeID="node2"/>
</rdf:Description>
<rdf:Description rdf:nodeID="node1">
<rdf:type rdf:resource=
"http://open-services.net/ns/auto#ParameterInstance"/>
<oslc:name>Parm1</oslc:name>
<rdf:value>Value1</rdf:value>
</rdf:Description>
<rdf:Description rdf:nodeID="node2">
<rdf:type rdf:resource=
"http://open-services.net/ns/auto#ParameterInstance"/>
<oslc:name>Parm2</oslc:name>
<rdf:value>Value2</rdf:value>
</rdf:Description>
</rdf:RDF>
Same sample using unabbreviated XML:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:oslc_auto="http://open-services.net/ns/auto#"
xmlns:my_ns="http://example.org/ns/my_ns#">
<oslc_auto:AutomationResult rdf:about=
"http://example.org/autoResults/result1">
<dcterms:title>Automation Result 1</dcterms:title>
<dcterms:identifier rdf:datatype=
"http://www.w3.org/2001/XMLSchema#integer">1</dcterms:identifier>
<rdf:type rdf:resource=
"http://open-services.net/ns/auto#AutomationResult"/>
<oslc_auto:state>Complete</oslc_auto:state>
<oslc_auto:verdict>Success</oslc_auto:verdict>
<oslc_auto:pass>true</oslc_auto:pass>
<oslc_auto:reportsOnAutomationPlan rdf:resource=
"http://example.org/autoPlan/plan1"/>
<oslc_auto:inputParameter>
<oslc_auto:ParameterInstance>
<oslc:name>Parm1</oslc:name>
<rdf:value>Value1</rdf:value>
</oslc_auto:ParameterInstance>
</oslc_auto:inputParameter>
<oslc_auto:inputParameter>
<oslc_auto:ParameterInstance>
<oslc:name>Parm2</oslc:name>
<rdf:value>Value2</rdf:value>
</oslc_auto:ParameterInstance>
</oslc_auto:inputParameter>
</oslc_auto:AutomationResult>
</rdf:RDF>
Regards,
Mike
Michael Fiedler
IBM Rational Software
fiedler at us.ibm.com
919-254-4170
oslc-automation-bounces at open-services.net wrote on 08/21/2012 08:52:50 AM:
> Pramod K Chandoria <pchandor at in.ibm.com>
> Sent by: oslc-automation-bounces at open-services.net
>
> 08/21/2012 08:52 AM
>
> To
>
> oslc-automation at open-services.net,
>
> cc
>
> Paul Slauenwhite <paules at ca.ibm.com>
>
> Subject
>
> [Oslc-Automation] Adoption issues with inputParameter and outputParameter
>
> Hi All,
> The current definition of inputParameter (http://open-services.net/
> ns/auto/auto.html#inputParameter) and outputParameter is that it is
> a reference to a resource of type ParameterInstrance.
> I think we all understand that no service providers really support a
> separate resource for these parameters. They are just inline in
> nature. Therefore we decided that such parameters will be often be
> inline parameters in the document.
> However while implementing this feature , I figured out I really
> need to have a unique URI if I use resource model, otherwise rdf/xml
> document can not be generated.
>
> Provided that I want to know if any one have done successful
> implementation for these parameters?
>
> Example to use the ParameterInstance approach, I really need to have
> a URI as shown below.
>
> <oslc_auto:inputParameter rdf:resource="Some Unique URI for
> parameter Instance"/>
>
> <rdf:Description rdf:about="AutomationRequest unique URI">
> ...
> <oslc_auto:inputParameter rdf:about="Some Unique URI for parameter
Instance
> say InputParamURI1"/>
> ...
> </rdf:Description>
>
> <rdf:Description rdf:about="InputParamURI1">
> <oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string
> ">BuildLocation</oslc:name>
> <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string
> ">foo Path</rdf:value>
> <rdf:type
rdf:resource="http://open-services.net/ns/auto#ParameterInstance"/>
> </rdf:Description>
>
> Any inputs on it
>
> Regards,
>
___________________________________________________________________________
>
> -|- Pramod K Chandoria
>
> Advisory Software Engineer
>
> IBM Rational, India Software Lab
>
> [image removed]
>
> Bangalore, India | +91-80-417-77045 | +91 99805 68253
>
> What's new in 4.0 | Ask Question in forum | Online Help | Download RQM
4.0
>
> [image removed]
>
> _______________________________________________
> Oslc-Automation mailing list
> Oslc-Automation at open-services.net
>
http://open-services.net/mailman/listinfo/oslc-automation_open-services.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://open-services.net/pipermail/oslc-automation_open-services.net/attachments/20120821/73d31153/attachment-0003.html>
More information about the Oslc-Automation
mailing list