/** * create a won message out of an hint event * * @param hint * @return * @throws WonMessageBuilderException */ private WonMessage createHintWonMessage(HintEvent hint) throws WonMessageBuilderException { URI wonNode = URI.create(hint.getFromWonNodeUri()); return WonMessageBuilder .setMessagePropertiesForHint( hint.getGeneratedEventUri(), URI.create(hint.getFromNeedUri()), FacetType.OwnerFacet.getURI(), wonNode, URI.create(hint.getToNeedUri()), FacetType.OwnerFacet.getURI(), URI.create(hint.getMatcherUri()), hint.getScore()) .setWonMessageDirection(WonMessageDirection.FROM_EXTERNAL) .build(); }
private WonMessage createWonMessage(URI needURI, URI otherNeedURI, double score, URI originator) throws WonMessageBuilderException { URI wonNode = WonLinkedDataUtils .getWonNodeURIForNeedOrConnection(needURI, linkedDataSource.getDataForResource(needURI)); return WonMessageBuilder .setMessagePropertiesForHint( wonNodeInformationService.generateEventURI( wonNode), needURI, FacetType.OwnerFacet.getURI(), wonNode, otherNeedURI, FacetType.OwnerFacet.getURI(), originator, score) .setWonMessageDirection(WonMessageDirection.FROM_EXTERNAL) .build(); } }
private WonMessage createWonMessage(URI needURI, URI otherNeedURI, double score, URI originator) throws WonMessageBuilderException { WonNodeInformationService wonNodeInformationService = getEventListenerContext().getWonNodeInformationService(); URI localWonNode = WonRdfUtils.NeedUtils.getWonNodeURIFromNeed( getEventListenerContext().getLinkedDataSource().getDataForResource(needURI), needURI); return WonMessageBuilder .setMessagePropertiesForHint( wonNodeInformationService.generateEventURI( localWonNode), needURI, FacetType.OwnerFacet.getURI(), localWonNode, otherNeedURI, FacetType.OwnerFacet.getURI(), originator, score) .build(); }
private WonMessage createWonMessage(URI needURI, URI otherNeedURI, double score, URI originator) throws WonMessageBuilderException { WonNodeInformationService wonNodeInformationService = getEventListenerContext().getWonNodeInformationService(); URI localWonNode = WonRdfUtils.NeedUtils.getWonNodeURIFromNeed( getEventListenerContext().getLinkedDataSource().getDataForResource(needURI), needURI); return WonMessageBuilder .setMessagePropertiesForHint( wonNodeInformationService.generateEventURI( localWonNode), needURI, FacetType.OwnerFacet.getURI(), localWonNode, otherNeedURI, FacetType.OwnerFacet.getURI(), originator, score) .build(); }
private WonMessage createWonMessage(URI needURI, URI otherNeedURI, double score, URI originator) throws WonMessageBuilderException { WonNodeInformationService wonNodeInformationService = getEventListenerContext().getWonNodeInformationService(); URI localWonNode = WonRdfUtils.NeedUtils.getWonNodeURIFromNeed( getEventListenerContext().getLinkedDataSource().getDataForResource(needURI), needURI); return WonMessageBuilder .setMessagePropertiesForHint( wonNodeInformationService.generateEventURI( localWonNode), needURI, FacetType.OwnerFacet.getURI(), localWonNode, otherNeedURI, FacetType.OwnerFacet.getURI(), originator, score) .build(); } }