Examples of Namespace


Examples of org.openbel.framework.api.internal.KAMStoreDaoImpl.Namespace

                   edge("geneAbundance(EG:116590)", TRANSCRIBED_TO, "rnaAbundance(EG:116590)"),
                   edge("rnaAbundance(EG:116590)", TRANSLATED_TO, "proteinAbundance(RGD:Mapk1)"),
                   edge("proteinAbundance(RGD:Mapk1)", ACTS_IN, "kinaseActivity(proteinAbundance(RGD:Mapk1))")).create();

        try {
            final Namespace mgi = createNamespace(
                    0,
                    "MGI",
                    "http://resource.belframework.org/belframework/1.0/namespace/mgi-approved-symbols.belns");
            final Namespace eg = createNamespace(
                    1,
                    "EG",
                    "http://resource.belframework.org/belframework/1.0/namespace/entrez-gene-ids-hmr.belns");
            final Namespace hgnc = createNamespace(
                    2,
                    "HGNC",
                    "http://resource.belframework.org/belframework/1.0/namespace/hgnc-approved-symbols.belns");
            final Namespace rgd = createNamespace(
                    3,
                    "RGD",
                    "http://resource.belframework.org/belframework/1.0/namespace/rgd-approved-symbols.belns");

            when(kamstore.getNamespaces(info)).thenReturn(
View Full Code Here

Examples of org.openbel.framework.common.model.Namespace

    public List<Namespace> getSpeciesNamespaces(final int speciesTaxId) {
        List<Namespace> rlocs = sizedArrayList(headers.size());
        for (final Map.Entry<String, NamespaceHeader> e : headers.entrySet()) {
            NamespaceHeader hdr = e.getValue();
            if (matchesSpecies(hdr, speciesTaxId)) {
                rlocs.add(new Namespace(hdr.getNamespaceBlock().getKeyword(), e.getKey()));
            }
        }
        return Collections.unmodifiableList(rlocs);
    }
View Full Code Here

Examples of org.openbel.framework.ws.model.Namespace

        }

        final NamespaceValue sourceNsValue = verifyNamespaceValue(request
                .getNamespaceValue());

        final Namespace targetNamespace = verifyNamespace(request
                .getTargetNamespace());

        try {
            final NamespaceValue equivalentNsValue = equivalencerService
                    .findNamespaceEquivalence(sourceNsValue, targetNamespace);
View Full Code Here

Examples of org.opengis.util.NameSpace

     */
    public static DefaultLocalName castOrCopy(final LocalName object) {
        if (object == null || object instanceof DefaultLocalName) {
            return (DefaultLocalName) object;
        }
        final NameSpace scope = object.scope();
        final InternationalString name = object.toInternationalString();
        final LocalName result;
        if (object instanceof MemberName) {
            result = DefaultFactories.SIS_NAMES.createMemberName(scope, name, ((MemberName) object).getAttributeType());
        } else if (object instanceof TypeName) {
View Full Code Here

Examples of org.openrdf.model.Namespace

  public Map<String, String> asMap()
    throws StoreException
  {
    Map<String, String> map = new HashMap<String, String>();
    Namespace ns;
    while ((ns = next()) != null) {
      map.put(ns.getPrefix(), ns.getName());
    }
    return map;
  }
View Full Code Here

Examples of org.openrdf.model.Namespace

    // Export namespace information
    NamespaceResult nsIter = getNamespaces();
    try {
      while (nsIter.hasNext()) {
        Namespace ns = nsIter.next();
        handler.handleNamespace(ns.getPrefix(), ns.getName());
      }
    }
    finally {
      nsIter.close();
    }
View Full Code Here

Examples of org.openrdf.model.Namespace

      NamespaceResult namespaces;
      namespaces = getDelegate().getNamespaces();
      List<String> prefix = new ArrayList<String>();
      try {
        while (namespaces.hasNext()) {
          Namespace ns = namespaces.next();
          prefix.add(ns.getPrefix());
        }
      }
      finally {
        namespaces.close();
      }
View Full Code Here

Examples of org.openrdf.model.Namespace

    try {
      Map<String, String> map = new HashMap<String, String>();
      int nsCount = 0;
      while (nsIter.hasNext()) {
        nsCount++;
        Namespace ns = nsIter.next();
        map.put(ns.getPrefix(), ns.getName());
      }

      assertEquals("There should be exactly three namespaces", 3, nsCount);
      assertTrue("namespace for prefix 'example' should exist", map.containsKey("example"));
      assertTrue("namespace for prefix 'rdfs' should exist", map.containsKey("rdfs"));
View Full Code Here

Examples of org.openrdf.model.Namespace

  {
    con.setNamespace("rdf", RDF.NAMESPACE);

    Cursor<? extends Namespace> namespaces = con.getNamespaces();
    try {
      Namespace rdf = namespaces.next();
      assertEquals("rdf", rdf.getPrefix());
      assertEquals(RDF.NAMESPACE, rdf.getName());
      assertNull(namespaces.next());
    }
    finally {
      namespaces.close();
    }
View Full Code Here

Examples of org.openrdf.query.algebra.Namespace

  @Override
  public Namespace visit(ASTNamespace node, Object data)
    throws VisitorException
  {
    return new Namespace((ValueExpr)super.visit(node, data));
  }
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.