[
https://issues.apache.org/jira/browse/MUSE-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dan Jemiolo closed MUSE-200.
----------------------------
Resolution: Fixed
> Create a new client class that makes it easier to read WSDM Metrics data
> ------------------------------------------------------------------------
>
> Key: MUSE-200
> URL: https://issues.apache.org/jira/browse/MUSE-200
> Project: Muse
> Issue Type: Improvement
> Components: WSDM MUWS Metrics
> Affects Versions: 2.1.0
> Reporter: Dan Jemiolo
> Assigned To: Dan Jemiolo
> Priority: Minor
> Fix For: 2.2.0
>
>
> Currently, in order to get the WSDM Metrics data for a property, users have
> to use the generic getResourceProperty() call and then use DOM's
> getAttributeNS() to read the data (then convert to Date). This is a pain, and
> makes it so that they have to go through multiple steps to get the property
> values as POJOs. It should be possible to use a method like
> getPropertyAsObject() and get back not only the property objects, but also
> the metric metadata values. This could probably be done by passing in a Map,
> like so:
> Map metrics = new HashMap();
> MyType[] values = (MyType[])client.getPropertyAsObject(MY_PROPERTY,
> MyType.class, metrics);
> you could then read the metrics from the Map using QNames from MuwsConstants.
> we could also separate out the metrics into a different call, but a) this
> would require two calls to getRP(), and b) it would possibly be incorrect -
> the property (and thus, the metrics) could change in between calls.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]