Package org.openrdf.model

Examples of org.openrdf.model.ValueFactory.createURI()


        ignoreAccidentalRDFa.openContext(extractionContext);
        ignoreAccidentalRDFa.receiveTriple(
                valueFactory.createURI(DOCUMENT_URI),
                valueFactory.createURI(predicate),
                valueFactory.createURI("http://www.myedu.com/modules/20110519065453/profile.css"),
                valueFactory.createURI(DOCUMENT_URI),
                extractionContext
        );
        ignoreAccidentalRDFa.close();

        verify(
View Full Code Here


     
      else if (end instanceof Literal)
      {
        Literal l = (Literal)end;
        ValueFactory f = dataRepo.getValueFactory();
        URI r = f.createURI(l.getLabel());
        if (r == null)
          continue;
        Element eR = createResourceElement(fd, dataRepo, doc, sl, null, r, Constants.DEFAULT_MAX_DEPTH);
        parent.appendChild(eR);
      }
View Full Code Here

    HashMap resSet = new HashMap();

    for (int j = 0; j < bid.length; j++)
    {
      ValueFactory f = dataRepo.getValueFactory();
      URI r = f.createURI(bid[j]);
      if (r == null)
        continue;

      // Don't render resource twice (???)
      if (resSet.containsKey(r))
View Full Code Here

  else if (renderLens.getBasicClassDomains() != null)
  {
    java.lang.String[] cd = renderLens.getBasicClassDomains();
    SesameLens sl = (SesameLens)renderLens;
    ValueFactory f = dataRepo.getValueFactory();
    URI pRDFType = f.createURI(Constants.RDF_NAMESPACE_URI + "type")
    HashMap resSet = new HashMap();

    for (int j = 0; j < cd.length; j++)
    {
      try {
View Full Code Here

    for (int j = 0; j < cd.length; j++)
    {
      try {
        RepositoryConnection connection = dataRepo.getConnection();
        RepositoryResult<Statement> si = connection.getStatements(null, RDF.TYPE, f.createURI(cd[j]), true);
        Statement s;
        Resource r;
        while (si.hasNext()){
          s = si.next();
          r = s.getSubject();
View Full Code Here

            }
            else if (end instanceof Literal)
            {
              Literal l = (Literal)end;
              ValueFactory f = dataRepo.getValueFactory();
              URI r = f.createURI(l.getLabel());
              if (r == null)
                continue;
              Element eR;
              //serialize meta knowledge or not
              eR = createResourceElement(fd, dataRepo, doc, sl, null, r, mqueryResults.get(value), Constants.DEFAULT_MAX_DEPTH, mres);
View Full Code Here

            }
            else if (end instanceof Literal)
            {
              Literal l = (Literal)end;
              ValueFactory f = dataRepo.getValueFactory();
              URI r = f.createURI(l.getLabel());
              if (r == null)
                continue;
              Element eR = createResourceElement(fd, dataRepo, doc, sl, null, r, Constants.DEFAULT_MAX_DEPTH);
              parent.appendChild(eR);
            }
View Full Code Here

       
        else if (end instanceof Literal)
        {
          Literal l = (Literal)end;
          ValueFactory f = dataRepo.getValueFactory();
          URI r = f.createURI(l.getLabel());
          if (r == null)
            continue;
          Element eR = createResourceElement(fd, dataRepo, doc, sl, null, r, Constants.DEFAULT_MAX_DEPTH);
          parent.appendChild(eR);
        }
View Full Code Here

      for (int j = 0; j < bid.length; j++)
      {
       
        ValueFactory f = dataRepo.getValueFactory();
        URI r = f.createURI(bid[j]);
        if (r == null)
          continue;

        // Don't render resource twice (???)
        if (resSet.containsKey(r))
View Full Code Here

    public void removeProjectFor( String groupId, String artifactId, String version, String artifactType )
        throws ProjectDaoException
    {
        ValueFactory valueFactory = rdfRepository.getValueFactory();
        URI id = valueFactory.createURI( groupId + ":" + artifactId + ":" + version + ":" + artifactType );
        try
        {
            repositoryConnection.remove( repositoryConnection.getStatements( id, null, null, true ) );
        }
        catch ( RepositoryException e )
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.