use of won.protocol.service.WonNodeInfo in project webofneeds by researchstudio-sat.
the class WonNodeSparqlService method getWonNodeInfoFromDataset.
/**
* Get the {@link won.protocol.service.WonNodeInfo} as an object from a
* {@link Dataset}
*
* @param ds Dataset which holds won node information
* @return
*/
public WonNodeInfo getWonNodeInfoFromDataset(Dataset ds) {
String dsWonNodeUri = getWonNodeUriFromDataset(ds);
WonNodeInfo nodeInfo = WonRdfUtils.WonNodeUtils.getWonNodeInfo(URI.create(dsWonNodeUri), ds);
if (nodeInfo == null) {
throw new DataIntegrityException("Could not load won node info from dataset with URI: " + dsWonNodeUri);
}
return nodeInfo;
}
Aggregations