Package org.apache.clerezza.rdf.utils

Examples of org.apache.clerezza.rdf.utils.GraphNode.deleteProperties()


    Lock writeLock = mGraph.getLock().writeLock();
    writeLock.lock();
    try {
      infoDiscoBitNode.addProperty(RDF.type, DISCOBITS.InfoDiscoBit);
      TypedLiteral dataLiteral = LiteralFactory.getInstance().createTypedLiteral(data);
      infoDiscoBitNode.deleteProperties(DISCOBITS.infoBit);
      infoDiscoBitNode.addProperty(DISCOBITS.infoBit, dataLiteral);
      TypedLiteral mediaTypeLiteral = LiteralFactory.getInstance().createTypedLiteral(mediaType.toString());
      infoDiscoBitNode.deleteProperties(DISCOBITS.mediaType);
      infoDiscoBitNode.addProperty(DISCOBITS.mediaType,mediaTypeLiteral);
    } finally {
View Full Code Here


      infoDiscoBitNode.addProperty(RDF.type, DISCOBITS.InfoDiscoBit);
      TypedLiteral dataLiteral = LiteralFactory.getInstance().createTypedLiteral(data);
      infoDiscoBitNode.deleteProperties(DISCOBITS.infoBit);
      infoDiscoBitNode.addProperty(DISCOBITS.infoBit, dataLiteral);
      TypedLiteral mediaTypeLiteral = LiteralFactory.getInstance().createTypedLiteral(mediaType.toString());
      infoDiscoBitNode.deleteProperties(DISCOBITS.mediaType);
      infoDiscoBitNode.addProperty(DISCOBITS.mediaType,mediaTypeLiteral);
    } finally {
      writeLock.unlock();
    }
    Set<MetaDataGenerator> metaDataGenerators = getMetaDataGenerators();
View Full Code Here


      contentHandler.put(scriptUri, mediaType, scriptFileBytes);

      GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
      scriptNode.deleteProperties(DCTERMS.title);
      scriptNode.deleteProperties(SCRIPT.scriptLanguage);
      scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
      scriptNode.deleteProperties(SCRIPT.producedType);
      scriptNode.addProperty(RDF.type, SCRIPT.Script);
      scriptNode.addProperty(DCTERMS.title,
View Full Code Here

      contentHandler.put(scriptUri, mediaType, scriptFileBytes);

      GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
      scriptNode.deleteProperties(DCTERMS.title);
      scriptNode.deleteProperties(SCRIPT.scriptLanguage);
      scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
      scriptNode.deleteProperties(SCRIPT.producedType);
      scriptNode.addProperty(RDF.type, SCRIPT.Script);
      scriptNode.addProperty(DCTERMS.title,
          LiteralFactory.getInstance().
View Full Code Here

      contentHandler.put(scriptUri, mediaType, scriptFileBytes);

      GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
      scriptNode.deleteProperties(DCTERMS.title);
      scriptNode.deleteProperties(SCRIPT.scriptLanguage);
      scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
      scriptNode.deleteProperties(SCRIPT.producedType);
      scriptNode.addProperty(RDF.type, SCRIPT.Script);
      scriptNode.addProperty(DCTERMS.title,
          LiteralFactory.getInstance().
          createTypedLiteral(scriptName));
View Full Code Here

      GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
      scriptNode.deleteProperties(DCTERMS.title);
      scriptNode.deleteProperties(SCRIPT.scriptLanguage);
      scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
      scriptNode.deleteProperties(SCRIPT.producedType);
      scriptNode.addProperty(RDF.type, SCRIPT.Script);
      scriptNode.addProperty(DCTERMS.title,
          LiteralFactory.getInstance().
          createTypedLiteral(scriptName));
      scriptNode.addProperty(SCRIPT.scriptLanguage,
View Full Code Here

    MGraph contentGraph = cgProvider.getContentGraph();
   
    contentHandler.remove(scriptUri);
    GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
    scriptNode.deleteProperty(RDF.type, SCRIPT.Script);
    scriptNode.deleteProperties(DCTERMS.title);
    scriptNode.deleteProperties(SCRIPT.scriptLanguage);
    scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
    scriptNode.deleteProperties(SCRIPT.producedType);
  }
View Full Code Here

   
    contentHandler.remove(scriptUri);
    GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
    scriptNode.deleteProperty(RDF.type, SCRIPT.Script);
    scriptNode.deleteProperties(DCTERMS.title);
    scriptNode.deleteProperties(SCRIPT.scriptLanguage);
    scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
    scriptNode.deleteProperties(SCRIPT.producedType);
  }

  /**
 
View Full Code Here

    contentHandler.remove(scriptUri);
    GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
    scriptNode.deleteProperty(RDF.type, SCRIPT.Script);
    scriptNode.deleteProperties(DCTERMS.title);
    scriptNode.deleteProperties(SCRIPT.scriptLanguage);
    scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
    scriptNode.deleteProperties(SCRIPT.producedType);
  }

  /**
   * @return  false if the specified execution URI is already used,
View Full Code Here

    GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
    scriptNode.deleteProperty(RDF.type, SCRIPT.Script);
    scriptNode.deleteProperties(DCTERMS.title);
    scriptNode.deleteProperties(SCRIPT.scriptLanguage);
    scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
    scriptNode.deleteProperties(SCRIPT.producedType);
  }

  /**
   * @return  false if the specified execution URI is already used,
   *      true otherwise.
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.