Package org.apache.clerezza.rdf.core.sparql

Examples of org.apache.clerezza.rdf.core.sparql.ResultSet


          QueryGenerator.getFieldQuery(fieldName), e);
      return;
    }

    sci.getMetadata();
    ResultSet result = tcManager.executeSparqlQuery(query,
        sci.getMetadata());
    List<String> values = new ArrayList<String>();
    while (result.hasNext()) {
      SolutionMapping sol = result.next();
      Resource res = sol.get(fieldName.toString());
      if (res == null)
        continue;
      String value = res.toString();
      if (res instanceof Literal) {
View Full Code Here


      String msg = "Cannot parse the SPARQL while trying to retrieve the enhancements of the ContentItem";
      log.error(msg, e);
      throw new StoreException(msg, e);
    }

    ResultSet resultSet = tcManager.executeSparqlQuery(selectQuery,
        this.getEnhancementGraph());
    MGraph metadata = new SimpleMGraph();
    while (resultSet.hasNext()) {
      SolutionMapping mapping = resultSet.next();
      UriRef ref = (UriRef) mapping.get("enhID");
      Iterator<Triple> tripleItr = this.getEnhancementGraph().filter(ref,
          null, null);
      while (tripleItr.hasNext()) {
        Triple triple = tripleItr.next();
View Full Code Here

TOP

Related Classes of org.apache.clerezza.rdf.core.sparql.ResultSet

Copyright © 2018 www.massapicom. 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.