Examples of Concept


Examples of javax.xml.registry.infomodel.Concept

  {
    List<EPR> eprs = new ArrayList<EPR>();

    Connection connection = JAXRConnectionSingleton.getConnection(jaxrConnectionFactory);
    try {
      final Concept jbossTModel = getJBossESBTModel(connection);

      Service service = findService(category, serviceName);
      if (service==null){
                throw new ServiceNotFoundException("Could not find service with category=" + category + " and serviceName=" + serviceName);
      }
View Full Code Here

Examples of javax.xml.registry.infomodel.Concept

  public EPR findEPR(String category, String serviceName) throws RegistryException, ServiceNotFoundException
  {
        EPR epr = null ;
    Connection connection = JAXRConnectionSingleton.getConnection(jaxrConnectionFactory);
        try {
      final Concept jbossTModel = getJBossESBTModel(connection);

            Service service = findService(category, serviceName);
            if (service==null){
                throw new ServiceNotFoundException("Could not find service with category=" + category + " and serviceName=" + serviceName);
            }
View Full Code Here

Examples of javax.xml.registry.infomodel.Concept

    if ((category==null) || (serviceName == null)) {
      return null ;
    }
    Connection connection = JAXRConnectionSingleton.getConnection(jaxrConnectionFactory);
    try {
      final Concept jbossTModel = getJBossESBTModel(connection);
      // Get registry service and business query manager
      RegistryService rs = connection.getRegistryService();
      BusinessQueryManager bqm = rs.getBusinessQueryManager();
            BusinessLifeCycleManager blm = rs.getBusinessLifeCycleManager();
            final ClassificationScheme cScheme = getClassificationScheme(bqm, blm) ;
View Full Code Here

Examples of javax.xml.registry.infomodel.Concept

  private void transferEPR(Service toService, Service fromService, ServiceBinding binding,
      Connection connection)
    throws JAXRException
  {
    try {
      final Concept jbossTModel = getJBossESBTModel(connection);

      RegistryService rs = connection.getRegistryService();
            BusinessLifeCycleManager blm = rs.getBusinessLifeCycleManager();
           
            fromService.removeServiceBinding(binding);
View Full Code Here

Examples of javax.xml.registry.infomodel.Concept

    }
   
    Collection<ServiceBinding> serviceBindings = new ArrayList<ServiceBinding>();
    Connection connection = JAXRConnectionSingleton.getConnection(jaxrConnectionFactory);
    try {
      final Concept jbossTModel = getJBossESBTModel(connection);
      RegistryService rs = connection.getRegistryService();
      BusinessQueryManager bqm = rs.getBusinessQueryManager();
      BusinessLifeCycleManager blm = rs.getBusinessLifeCycleManager();
      Collection<String> findQualifiers = null;
      //Collection<String> findQualifiers = new ArrayList<String>();
View Full Code Here

Examples of javax.xml.registry.infomodel.Concept

            }
            String targetid = savekey.getId();
            Organization targetOrg = (Organization) bqm2.getRegistryObject(targetid, objectType);
            assertNotNull("Target Org", targetOrg.getName().getValue());

            Concept associationType = getAssociationConcept("Implements");
            assertNotNull("AssociationType", associationType);

            Association a = blm.createAssociation(targetOrg, associationType);
            a.setSourceObject(pubSource);
View Full Code Here

Examples of org.apache.ctakes.assertion.medfacts.types.Concept

      String conceptText = annotation.getCoveredText();

      //logger.info(String.format("NAMED ENTITY: \"%s\" [%d-%d]", conceptText,
      //    begin, end));

      Concept concept = new Concept(jcas, begin, end);
      concept.setConceptText(conceptText);
      concept.setConceptType(null);

      concept.setOriginalEntityExternalId(annotation.getAddress());

      FSArray ontologyConceptArray = annotation
          .getOntologyConceptArr();

      ConceptType conceptType = ConceptLookup
          .lookupConceptType(ontologyConceptArray);

      //logger.info(String.format("got concept type: %s", conceptType));

      // now always generating a concept annotation whether or not the
      // conceptType is null (previously, we only generated a concept
      // annotation if the conceptType was not null)
      if (conceptType != null)
      {
        concept.setConceptType(conceptType.toString());
      }
      concept.addToIndexes();

      //logger.info("finished adding new Concept annotation. " + concept);

    }
    //logger.info("    after iterating over named entities.");
View Full Code Here

Examples of org.dmlite.model.component.concept.Concept

    this.viewContext = viewContext;
  }

  protected void populateItem(final ListItem item) {
    try {
      Concept concept = (Concept) item.getModelObject();
      String conceptName = concept.getCode().toUpperCase();
      Label conceptNameLabel = new Label("conceptName", conceptName);
      item.add(conceptNameLabel);

      ModelContext propertiesModelContext = new ModelContext(modelContext);
      Properties properties = concept.getProperties();
      propertiesModelContext.setEntities(properties);
      ViewContext propertiesViewContext = new ViewContext(viewContext);
      propertiesViewContext.setWicketId("propertyListPanel");
      PropertyListPanel propertyListPanel = new PropertyListPanel(
          propertiesModelContext, propertiesViewContext);
      item.add(propertyListPanel);

      ModelContext neighborsModelContext = new ModelContext(modelContext);
      Neighbors neighbors = concept.getNeighbors();
      neighborsModelContext.setEntities(neighbors);
      ViewContext neighborsViewContext = new ViewContext(viewContext);
      neighborsViewContext.setWicketId("neighborListPanel");
      NeighborListPanel neighborListPanel = new NeighborListPanel(
          neighborsModelContext, neighborsViewContext);
View Full Code Here

Examples of org.mitre.medfacts.types.Concept

      String conceptText = annotation.getCoveredText();

      //logger.info(String.format("NAMED ENTITY: \"%s\" [%d-%d]", conceptText,
      //    begin, end));

      Concept concept = new Concept(jcas, begin, end);
      concept.setConceptText(conceptText);
      concept.setConceptType(null);

      concept.setOriginalEntityExternalId(annotation.getAddress());

      FSArray ontologyConceptArray = annotation
          .getOntologyConceptArr();

      ConceptType conceptType = ConceptLookup
          .lookupConceptType(ontologyConceptArray);

      //logger.info(String.format("got concept type: %s", conceptType));

      // now always generating a concept annotation whether or not the
      // conceptType is null (previously, we only generated a concept
      // annotation if the conceptType was not null)
      if (conceptType != null)
      {
        concept.setConceptType(conceptType.toString());
      }
      concept.addToIndexes();

      //logger.info("finished adding new Concept annotation. " + concept);

    }
    //logger.info("    after iterating over named entities.");
View Full Code Here

Examples of org.ontospread.xmlbind.Concept

          HashMap<String,String> parameters = new HashMap<String, String>();
          parameters.put("uri", conceptUri);
          Transformer tf = this.templates.getDAOTransformer(keyTemplates,parameters);
          DOMResult outputTarget = new DOMResult();
          tf.transform(new StreamSource(is), outputTarget );         
          Concept concept =  ConceptXMLBind.getInstance().restoreConcept(outputTarget.getNode());
          this.cache.put(conceptUri, concept);
          return concept;
        } else {
          logger.error("Unable to get a representation of the resource: "
              + connection.getResponseCode()
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.