Example: Event query result
The result message from the query capability is nonstandard but optimized to prevent unnecessary repetitive fetches of individual events. When a query is resolved, the OSLC interface has all of the events already. Consequently, in addition to generating a ResponseInfo section detailing the members of the result, the message also provides all of the requested properties of the events in the response too.
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:crtv="http://open-services.net/ns/crtv#"
xmlns:oslcem="http://jazz.net/ns/ism/event/omnibus#"
xmlns:oslcemp="http://jazz.net/ns/ism/event/omnibus/itnm#"
xmlns:oslcemb="http://jazz.net/ns/ism/event/omnibus/tbsm#"
xmlns:oslcemm="http://jazz.net/ns/ism/event/omnibus/misc#">
<rdf:Description rdf:about="http://localhost/objectserver/oslc/query/events">
<dcterms:title>Event Service Query Results</dcterms:title>
<rdf:type rdf:resource="http://open-services.net/ns/core#ResponseInfo"/>
<rdfs:member rdf:resource="http://localhost/objectserver/oslc/event/3576%2BNCOMS"/>
<rdfs:member rdf:resource="http://localhost/objectserver/oslc/event/3577%2BNCOMS"/>
<rdfs:member rdf:resource="http://localhost/objectserver/oslc/event/3578%2BNCOMS"/>
<rdfs:member rdf:resource="http://localhost/objectserver/oslc/event/3579%2BNCOMS"/>
<rdfs:member rdf:resource="http://localhost/objectserver/oslc/event/3580%2BNCOMS"/>
<rdfs:member rdf:resource="http://localhost/objectserver/oslc/event/3581%2BNCOMS"/>
<rdfs:member rdf:resource="http://localhost/objectserver/oslc/event/3582%2BNCOMS"/>
<rdfs:member rdf:resource="http://localhost/objectserver/oslc/event/3583%2BNCOMS"/>
<rdfs:member rdf:resource="http://localhost/objectserver/oslc/event/3584%2BNCOMS"/>
<rdfs:member rdf:resource="http://localhost/objectserver/oslc/event/3585%2BNCOMS"/>
</rdf:Description>
<rdf:Description rdf:about="http://localhost/objectserver/oslc/event/3576%2BNCOMS">
<rdf:type rdf:resource="http://jazz.net/ns/ism/event/omnibus#Event"/>
<dcterms:identifier>JUnitEventTestInstance@@@@0</dcterms:identifier>
<dcterms:created>2012-05-18T14:46:54</dcterms:created>
<oslcem:ownerUID rdf:resource="http://localhost/objectserver/oslc/user/501"/>
<oslcem:severity>4</oslcem:severity>
<oslcem:summary>This is a test event generated by the JUnit OSLC Event Tests. (0)</oslcem:summary>
<oslcem:node>localhost</oslcem:node>
<oslcem:agent>createEventNew()</oslcem:agent>
<oslcem:alertGroup></oslcem:alertGroup>
<oslcem:lastOccurrence>2012-05-18T14:46:54</oslcem:lastOccurrence>
<oslcem:tally>1</oslcem:tally>
<oslcem:acknowledged>false</oslcem:acknowledged>
<oslcem:serial>3576</oslcem:serial>
<oslcem:serverSerial>3576</oslcem:serverSerial>
<oslcem:serverName>NCOMS</oslcem:serverName>
<oslcem:alertKey>JUnitEventInstance</oslcem:alertKey>
<oslcem:manager>com.ibm.netcool.omnibus.ws.junit.rest.oslc.v1.utils.ResourceEven</oslcem:manager>
<oslcem:stateChange>2012-05-18T13:46:54</oslcem:stateChange>
<oslcem:internalLast>2012-05-18T13:46:54</oslcem:internalLast>
<oslcem:type>1</oslcem:type>
<oslcem:class>0</oslcem:class>
<oslcem:grade>0</oslcem:grade>
<oslcem:ownerGID rdf:resource="http://localhost/objectserver/oslc/group/0"/>
<oslcem:taskList>0</oslcem:taskList>
<oslcem:suppressEscl>0</oslcem:suppressEscl>
<oslcem:flash>0</oslcem:flash>
<oslcem:expireTime>0</oslcem:expireTime>
<oslcem:customer></oslcem:customer>
<oslcem:service></oslcem:service>
<oslcem:probeSubSecondId>0</oslcem:probeSubSecondId>
<oslcem:journal rdf:resource="http://localhost/objectserver/oslc/query/journals?oslc.where=oslcem%3Aevent%7Boslcem%3AserverSerial%3D3576%20and%20oslcem%3AserverName%3D%22NCOMS%22%7D&oslc.orderBy=dcterms%3Acreated"/>
<oslcem:detail rdf:resource="http://localhost/objectserver/oslc/query/details?oslc.where=oslcem%3Aevent%7Boslcem%3AserverSerial%3D3576%20and%20oslcem%3AserverName%3D%22NCOMS%22%7D&oslc.orderBy=oslcem%3Asequence"/>
<oslcemp:eventId></oslcemp:eventId>
<oslcemp:processReq>0</oslcemp:processReq>
<oslcemp:nmosSerial></oslcemp:nmosSerial>
<oslcemp:nmosObjInst>0</oslcemp:nmosObjInst>
<oslcemp:nmosCauseType>0</oslcemp:nmosCauseType>
<oslcemp:nmosDomainName></oslcemp:nmosDomainName>
<oslcemp:nmosEntityId>0</oslcemp:nmosEntityId>
<oslcemp:nmosManagedStatus>0</oslcemp:nmosManagedStatus>
<oslcemp:nmosEventMap></oslcemp:nmosEventMap>
<oslcemp:localNodeAlias></oslcemp:localNodeAlias>
<oslcemp:localPriObj></oslcemp:localPriObj>
<oslcemp:localSecObj></oslcemp:localSecObj>
<oslcemp:localRootObj></oslcemp:localRootObj>
<oslcemp:remoteNodeAlias></oslcemp:remoteNodeAlias>
<oslcemp:remotePriObj></oslcemp:remotePriObj>
<oslcemp:remoteSecObj></oslcemp:remoteSecObj>
<oslcemp:remoteRootObj></oslcemp:remoteRootObj>
<oslcemb:bsmIdentity></oslcemb:bsmIdentity>
<oslcemm:poll>0</oslcemm:poll>
<oslcemm:location>NOT UPDATED</oslcemm:location>
<oslcemm:physicalSlot>0</oslcemm:physicalSlot>
<oslcemm:physicalPort>0</oslcemm:physicalPort>
<oslcemm:physicalCard></oslcemm:physicalCard>
<oslcemm:x733EventType>0</oslcemm:x733EventType>
<oslcemm:x733ProbableCause>0</oslcemm:x733ProbableCause>
<oslcemm:x733SpecificProb></oslcemm:x733SpecificProb>
<oslcemm:x733CorrNotif></oslcemm:x733CorrNotif>
<oslcemm:url rdf:resource="http://localhost/objectserver/restapi/v1/alerts/status"/>
<oslcemm:extendedAttr></oslcemm:extendedAttr>
<oslcemm:oldRow>0</oslcemm:oldRow>
</rdf:Description>
<rdf:Description rdf:about="http://localhost/objectserver/oslc/event/3577%2BNCOMS">
<rdf:type rdf:resource="http://jazz.net/ns/ism/event/omnibus#Event"/>
*** CONTENTS STRIPPED TO IMPROVE UNDERSTANDING ***
</rdf:Description>
<rdf:Description rdf:about="http://localhost/objectserver/oslc/event/3585%2BNCOMS">
<rdf:type rdf:resource="http://jazz.net/ns/ism/event/omnibus#Event"/>
<dcterms:identifier>JUnitEventTestInstance@@@@9</dcterms:identifier>
<dcterms:created>2012-05-18T14:46:54</dcterms:created>
<oslcem:ownerUID rdf:resource="http://localhost/objectserver/oslc/user/501"/>
<oslcem:severity>4</oslcem:severity>
<oslcem:summary>This is a test event generated by the JUnit OSLC Event Tests. (9)</oslcem:summary>
<oslcem:node>localhost</oslcem:node>
<oslcem:agent>createEventNew()</oslcem:agent>
<oslcem:alertGroup></oslcem:alertGroup>
<oslcem:lastOccurrence>2012-05-18T14:46:54</oslcem:lastOccurrence>
<oslcem:tally>1</oslcem:tally>
<oslcem:acknowledged>false</oslcem:acknowledged>
<oslcem:serial>3585</oslcem:serial>
<oslcem:serverSerial>3585</oslcem:serverSerial>
<oslcem:serverName>NCOMS</oslcem:serverName>
<oslcem:alertKey>JUnitEventInstance</oslcem:alertKey>
<oslcem:manager>com.ibm.netcool.omnibus.ws.junit.rest.oslc.v1.utils.ResourceEven</oslcem:manager>
<oslcem:stateChange>2012-05-18T13:46:59</oslcem:stateChange>
<oslcem:internalLast>2012-05-18T13:46:59</oslcem:internalLast>
<oslcem:type>1</oslcem:type>
<oslcem:class>0</oslcem:class>
<oslcem:grade>0</oslcem:grade>
<oslcem:ownerGID rdf:resource="http://localhost/objectserver/oslc/group/0"/>
<oslcem:taskList>0</oslcem:taskList>
<oslcem:suppressEscl>0</oslcem:suppressEscl>
<oslcem:flash>0</oslcem:flash>
<oslcem:expireTime>0</oslcem:expireTime>
<oslcem:customer></oslcem:customer>
<oslcem:service></oslcem:service>
<oslcem:probeSubSecondId>0</oslcem:probeSubSecondId>
<oslcem:journal rdf:resource="http://localhost/objectserver/oslc/query/journals?oslc.where=oslcem%3Aevent%7Boslcem%3AserverSerial%3D3585%20and%20oslcem%3AserverName%3D%22NCOMS%22%7D&oslc.orderBy=dcterms%3Acreated"/>
<oslcem:detail rdf:resource="http://localhost/objectserver/oslc/query/details?oslc.where=oslcem%3Aevent%7Boslcem%3AserverSerial%3D3585%20and%20oslcem%3AserverName%3D%22NCOMS%22%7D&oslc.orderBy=oslcem%3Asequence"/>
<oslcemp:eventId></oslcemp:eventId>
<oslcemp:processReq>0</oslcemp:processReq>
<oslcemp:nmosSerial></oslcemp:nmosSerial>
<oslcemp:nmosObjInst>0</oslcemp:nmosObjInst>
<oslcemp:nmosCauseType>0</oslcemp:nmosCauseType>
<oslcemp:nmosDomainName></oslcemp:nmosDomainName>
<oslcemp:nmosEntityId>0</oslcemp:nmosEntityId>
<oslcemp:nmosManagedStatus>0</oslcemp:nmosManagedStatus>
<oslcemp:nmosEventMap></oslcemp:nmosEventMap>
<oslcemp:localNodeAlias></oslcemp:localNodeAlias>
<oslcemp:localPriObj></oslcemp:localPriObj>
<oslcemp:localSecObj></oslcemp:localSecObj>
<oslcemp:localRootObj></oslcemp:localRootObj>
<oslcemp:remoteNodeAlias></oslcemp:remoteNodeAlias>
<oslcemp:remotePriObj></oslcemp:remotePriObj>
<oslcemp:remoteSecObj></oslcemp:remoteSecObj>
<oslcemp:remoteRootObj></oslcemp:remoteRootObj>
<oslcemb:bsmIdentity></oslcemb:bsmIdentity>
<oslcemm:poll>0</oslcemm:poll>
<oslcemm:location>NOT UPDATED</oslcemm:location>
<oslcemm:physicalSlot>0</oslcemm:physicalSlot>
<oslcemm:physicalPort>0</oslcemm:physicalPort>
<oslcemm:physicalCard></oslcemm:physicalCard>
<oslcemm:x733EventType>0</oslcemm:x733EventType>
<oslcemm:x733ProbableCause>0</oslcemm:x733ProbableCause>
<oslcemm:x733SpecificProb></oslcemm:x733SpecificProb>
<oslcemm:x733CorrNotif></oslcemm:x733CorrNotif>
<oslcemm:url rdf:resource="http://localhost/objectserver/restapi/v1/alerts/status"/>
<oslcemm:extendedAttr></oslcemm:extendedAttr>
<oslcemm:oldRow>0</oslcemm:oldRow>
</rdf:Description>
</rdf:RDF>