Examples of Identify


Examples of ORG.oclc.oai.harvester2.verb.Identify

     * @throws ParserConfigurationException
     * @throws IOException
     */
    private String OAIGetDateGranularity(String oaiSource) throws IOException, ParserConfigurationException, SAXException, TransformerException
    {
      Identify iden = new Identify(oaiSource);
      return iden.getDocument().getElementsByTagNameNS(OAI_NS.getURI(), "granularity").item(0).getTextContent();
    }
View Full Code Here

Examples of ORG.oclc.oai.harvester2.verb.Identify

      String OREOAIPrefix = null;
      Namespace DMD_NS = OAIHarvester.getDMDNamespace(metaPrefix);
      String DMDOAIPrefix = null;
     
      try {
        Identify idenTest = new Identify(oaiSource);
      }
      catch (Exception ex) {
        errorSet.add(OAI_ADDRESS_ERROR + ": OAI server could not be reached.");
        return errorSet;
      }
View Full Code Here

Examples of akka.actor.Identify

    @Override
    public String identify(String path)
    {
        final String id = UUID.randomUUID().toString();
        getContext().actorSelection(path).tell(new Identify(id), getSelf());

        return id;
    }
View Full Code Here

Examples of akka.actor.Identify

  public class Follower extends AbstractActor {
    final Integer identifyId = 1;

    public Follower(){
      ActorSelection selection = context().actorSelection("/user/another");
      selection.tell(new Identify(identifyId), self());

      receive(ReceiveBuilder.
        match(ActorIdentity.class, id -> id.getRef() != null, id -> {
          ActorRef ref = id.getRef();
          context().watch(ref);
View Full Code Here

Examples of akka.actor.Identify

    this.path = path;
    sendIdentifyRequest();
  }

  private void sendIdentifyRequest() {
    getContext().actorSelection(path).tell(new Identify(path), getSelf());
    getContext()
        .system()
        .scheduler()
        .scheduleOnce(Duration.create(3, SECONDS), getSelf(),
            ReceiveTimeout.getInstance(), getContext().dispatcher(), getSelf());
View Full Code Here

Examples of eu.planets_project.services.identify.Identify

            e.printStackTrace();
            throw e;
        }
        Service service = Service.create(url, new QName(PlanetsServices.NS,
                Identify.NAME));
        Identify droid = service.getPort(Identify.class);
        byte[] array = FileUtils.readFileToByteArray(f1);
       
        //invoke the service and extract results
        IdentifyResult identify = droid.identify(new DigitalObject.Builder(Content.byValue(array)).build(), null);
        List<URI> result = identify.getTypes();
        String status = identify.getReport().getMessage();
       
        if(!status.equals("Positive")){
          throw new Exception("Service execution failed");
View Full Code Here

Examples of eu.planets_project.services.identify.Identify

                    this.fillComparisonEvent(me, chr, cr);
                    ExperimentInspector.persistExperiment();
                }
               
            } else if(sd.getType().equals(Identify.class.getCanonicalName())) {
                Identify idf = new IdentifyWrapper(surl);
                IdentifyResult ir1 = idf.identify( this.getDob1().getDob(), null);
                this.compareServiceReport = ir1.getReport();
                IdentifyResult ir2 = idf.identify( this.getDob2().getDob(), null);
                this.compareServiceReport = ir2.getReport();
               
                me = this.createMeasurementEvent();
                if( me != null ) {
                    me.setAgent(new MeasurementAgent(idf.describe()));
                    me.setDate(Calendar.getInstance());
                    this.recordIdentifyComparison(me, ir1, this.getDobUri1(), ir2, this.getDobUri2() );
                   
                    ExperimentInspector.persistExperiment();
                }
View Full Code Here

Examples of eu.planets_project.services.identify.Identify

            System.out.println("Using WSDL from: "+service.getWSDLDocumentLocation());
            Iterator<QName> ports = service.getPorts();
            while( ports.hasNext() ) {
                System.out.println("Got : "+ports.next());
            }
            Identify droid = (Identify) service.getPort( Identify.class );
            IdentifyResult result = droid.identify(new DigitalObject.Builder(
                    Content.byValue(new File("PC/droid/src/resources/Licence.rtf"))).build(), null);
            System.out.println("Result: "+result.getTypes());
            System.exit(1);
        } catch (MalformedURLException e) {
            // TODO Auto-generated catch block
View Full Code Here

Examples of eu.planets_project.services.identify.Identify

    }
   
    private IdentifyResult runIdentifyService() {
        if( this.getIdentifyService() == null ) return null;
        try {
            Identify id = new IdentifyWrapper(new URL( this.getIdentifyService()));
            IdentifyResult ir = id.identify(this.getDob().getDob(), null);
            return ir;
        } catch( Exception e ) {
            log.error("FAILED! "+e);
            e.printStackTrace();
            return null;
View Full Code Here

Examples of org.fao.geonet.kernel.oaipmh.services.Identify

  public OaiPmhDispatcher(SettingManager sm, SchemaManager scm)
  {
    ResumptionTokenCache cache = new ResumptionTokenCache(sm);
   
    register(new GetRecord());
    register(new Identify());
    register(new ListIdentifiers(cache, sm, scm));
    register(new ListMetadataFormats());
    register(new ListRecords(cache, sm, scm));
    register(new ListSets());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.