Examples of importData()


Examples of org.apache.marmotta.platform.core.api.importer.ImportService.importData()

       
        ImportService importService = marmotta.getService(ImportService.class);
        UserService userService = marmotta.getService(UserService.class);
        ContextService contextService = marmotta.getService(ContextService.class);
        InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("foaf.rdf");
        int n = importService.importData(is, "application/rdf+xml", userService.getAnonymousUser(), contextService.getDefaultContext());
        log.info("Imported RDF test suite with {} triples", n);
       
        RestAssured.baseURI = "http://localhost";
        RestAssured.port = marmotta.getPort();
        RestAssured.basePath = marmotta.getContext();
View Full Code Here

Examples of org.apache.uima.ducc.common.jd.files.WorkItemStateManager.importData()

            IDuccWorkJob job = (IDuccWorkJob)duccWork;
            String jobNo = job.getId();
            String userId = job.getStandardInfo().getUser();
            String jobDir = job.getLogDirectory()+jobNo;
            WorkItemStateManager workItemStateManager = new WorkItemStateManager(jobDir);
            workItemStateManager.importData(userId);
            updatedWisMap.put(jobNo, workItemStateManager);
            break;
          }
        }
        wisMap = updatedWisMap;
View Full Code Here

Examples of org.apache.uima.ducc.common.jd.files.WorkItemStateManager.importData()

    protected void formatWorkItems()
    {
        WorkItemStateManager workItemStateManager = new WorkItemStateManager(dir);
        try {
          workItemStateManager.importData();
        }
        catch(Exception e) {
          e.printStackTrace();
          return;
        }
View Full Code Here

Examples of org.apache.uima.ducc.common.jd.files.WorkItemStateManager.importData()

    DuccWorkJob job = getJob(jobNo);
    if(job != null) {
      try {
        String userId = duccWebSessionManager.getUserId(request);
        WorkItemStateManager workItemStateManager = new WorkItemStateManager(job.getLogDirectory()+jobNo);
        workItemStateManager.importData(userId);
        ConcurrentSkipListMap<Long,IWorkItemState> map = workItemStateManager.getMap();
          if( (map == null) || (map.size() == 0) ) {
            sb.append("no data (map empty?)");
          }
          else {
View Full Code Here

Examples of org.apache.uima.ducc.common.jd.files.WorkItemStateManager.importData()

    DuccWorkJob job = getJob(jobNo);
    if(job != null) {
      try {
        String userId = duccWebSessionManager.getUserId(request);
        WorkItemStateManager workItemStateManager = new WorkItemStateManager(job.getLogDirectory()+jobNo);
        workItemStateManager.importData(userId);
        PerformanceSummary performanceSummary = new PerformanceSummary(job.getLogDirectory()+jobNo);
          PerformanceMetricsSummaryMap performanceMetricsSummaryMap = performanceSummary.readSummary(userId);
          if( (performanceMetricsSummaryMap == null) || (performanceMetricsSummaryMap.size() == 0) ) {
            sb.append("no data (map empty?)");
          }
View Full Code Here

Examples of org.openbp.jaspira.gui.interaction.InteractionClient.importData()

          if (o instanceof InteractionClient)
          {
            InteractionClient interactionClient = (InteractionClient) o;

            if (interactionClient.importData(regionId, transferable, null))
            {
              imported = true;
            }
          }
        }
View Full Code Here

Examples of org.openbp.jaspira.gui.interaction.InteractionClient.importData()

          if (o instanceof InteractionClient)
          {
            InteractionClient interactionClient = (InteractionClient) o;

            if (interactionClient.importData(regionId, transferable, null))
            {
              imported = true;
            }
          }
        }
View Full Code Here

Examples of org.openstreetmap.josm.io.GpxImporter.importData()

    for (Layer l : capasActuales) {
      if (l.name.equals(file.getAbsolutePath()))
        return;
    }

    importer.importData(file);
    GpxLayer layer = new MyGpxLayer(importer.getLastData(), absolutePath,
        this.mapView);

    Main.pref.putColor("layer " + layer.name,
        Color.decode(LogicConstants.getNextColor()));
View Full Code Here

Examples of org.openstreetmap.josm.io.GpxImporter.importData()

    GpxLayer layer = null;
    try {
      if (!importer.acceptFile(file)) {
        new IOException("Gpx inaccesible.");
      }
      importer.importData(file);
      layer = new MyGpxLayer(importer.getLastData(),
          file.getAbsolutePath(), true, this.mapView);
      layer.name = name;
      addCapa(layer);
    } catch (Throwable t) {
View Full Code Here

Examples of org.photovault.imginfo.xml.XmlImporter.importData()

                public void run() {
                    try {
                        BufferedReader reader = new BufferedReader( new FileReader( f ) );
                        XmlImporter importer = new XmlImporter( reader );
                        importer.addListener( staticThis );
                        importer.importData();
                        reader.close();
                    } catch (IOException ex) {
                        ex.printStackTrace();
                    }
                }
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.