Examples of NamedNodeImpl


Examples of org.wymiwyg.rdf.graphs.impl.NamedNodeImpl

        }
      }
      Resource assertionSource = assertion.getProperty(
          METAMODEL.asserter).getResource();
      Source source = new SourceImpl(assertionSource.getURI());
      NamedNode component = new NamedNodeImpl(assertedComponent.getURI());
      componentTypeMap.put(component, type);
      SourceComponent sourceComponent = new SourceComponent(source, component);
      {
        //adding assertion
        Literal assertionTimeLit = assertion.getProperty(
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.NamedNodeImpl

  public TerminalMolecule getTerminalMolecule(NamedNode moleculeRef) {
    return tMoleculesMap.getKey(moleculeRef);
  }
 
  private NamedNode createNewStorageURIRef() {
    return new NamedNodeImpl(Util.createURN5());
    //return new NamedNodeImpl(baseURI + Util.createRandomString(8));
  }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.NamedNodeImpl

          if (!moment.before(revocationTime)) {
            continue;
          }
        }

        result.add(new NamedNodeImpl(assertedComponent.getURI()));
      }
    }
    return result;
  }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.NamedNodeImpl

      Date assertionTime;
      assertionTime = ((XSDDateTime) assertionTimeLit.getValue())
          .asCalendar().getTime();
      if (moment.equals(assertionTime)) {
        result.add(new NamedNodeImpl(assertedComponent.getURI()));
      }

    }
    return result;
  }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.NamedNodeImpl

      if (revocationTimeStmt != null) {
        Literal revocationTimeLit = revocationTimeStmt.getLiteral();
        Date revocationTime = ((XSDDateTime) revocationTimeLit
            .getValue()).asCalendar().getTime();
        if (moment.equals(revocationTime)) {
          result.add(new NamedNodeImpl(assertedComponent.getURI()));
        }
      }

    }
    return result;
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.NamedNodeImpl

    String baseURLString = "http://"
        + serverBinding.getInetAddress().getHostName() + ":"
        + serverBinding.getPort() + "/";
    CannedDataReader.readCannedData(store, directory, baseURLString);
    Source source = new SourceImpl("http://example.org/graph-source");
    NamedNode config = new NamedNodeImpl("http://example.org/config#");
    WebServer webServer = GVSServerLauncher.launchGVSServer(store, serverBinding, null, Collections.singleton(source), config);
    URL serverURL = new URL("http://"+serverBinding.getInetAddress().getHostAddress()+":"+serverBinding.getPort()+"/application/test-dir/test-data");
    InputStream remoteStream = serverURL.openStream();
    InputStream resourceStream = ApplicationServerHandler.class.getResourceAsStream("/META-INF/web/application/test-dir/test-data.txt");
    for (int i = resourceStream.read(); i > -1; i = resourceStream.read()) {
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.NamedNodeImpl

          }
        }

      }
      String randomString = new String(dirNameChars);
      node = new NamedNodeImpl(baseURI + randomString);
      directory = new File(baseDir, randomString);
    }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.NamedNodeImpl

    /**
     * @param uri
     */
    public ComponentDirectory(String uri) {
      node = new NamedNodeImpl(uri);
      String localName = uri.substring(baseURI.length());
      directory = new File(baseDir, localName);
    }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.NamedNodeImpl

      throw new RuntimeException(e);
    }
    Set<Source> trustedSources = getTrustedSources(serviceResource);
    Source identity = new SourceImpl(serviceResource.getRequiredProperty(SERVICES.identity).getResource().getURI());
    trustedSources.add(identity); //trust yourself
    NamedNode configuration = new NamedNodeImpl(serviceResource.getRequiredProperty(SERVICES.configuration).getResource().getURI());
    final Service service  = serviceFactory.getService(store, identity, trustedSources, configuration);
    new Thread() {
      public void run() {
        service.start();
      }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.NamedNodeImpl

  private void addUser(LoginData loginData, Graph graph, Request request)
      throws HandlerException {
    // TODO use an jenaModelWrapper (TBD)
    Node user = new NodeImpl();
    graph.add(new TripleImpl(user, new PropertyNodeImpl(RDF.type.getURI()),
        new NamedNodeImpl(FOAF.Agent.getURI())));
    graph.add(new TripleImpl(user, new InverseFunctionalPropertyNodeImpl(
        ACCOUNTMANAGER.userName.getURI()), new PlainLiteralNodeImpl(
        loginData.userName)));
    graph.add(new TripleImpl(user, new PropertyNodeImpl(
        ACCOUNTMANAGER.passwordSha1.getURI()),
        new PlainLiteralNodeImpl(loginData.passwordSha1)));
    graph.add(new TripleImpl(user, new InverseFunctionalPropertyNodeImpl(
        FOAF.mbox_sha1sum.getURI()), new PlainLiteralNodeImpl(
        loginData.mboxSha1)));
    graph.add(new TripleImpl(user, new PropertyNodeImpl(
        AUTHORIZATION.mayImpersonate.getURI()), new NamedNodeImpl(
        getUserSource(loginData.userName, request))));

  }
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.