Examples of asQueryString()


Examples of com.clarkparsia.empire.Dialect.asQueryString()

             "where {?s ?p ?o. filter(?s = " + aDialect.asQueryString(aResource) + ") }";


    String aSeRQL = "construct {s} p {o}\n" +
             (aNG == null ? "from\n" : "from context <" + aNG + ">\n") +
             "{s} p {o} where s = " + aDialect.asQueryString(aResource) + "";

    Graph aGraph;

    if (theSource.getQueryFactory().getDialect() instanceof SerqlDialect) {
      aGraph = theSource.graphQuery(aSeRQL);
View Full Code Here

Examples of com.clarkparsia.empire.Dialect.asQueryString()

    Dialect aDialect = theSource.getQueryFactory().getDialect();

    String aSPARQL = "select distinct ?s\n" +
             (aNG == null ? "" : "from <" + aNG + ">\n") +
             "where {?s ?p ?o. filter(?s = " + aDialect.asQueryString(EmpireUtil.asResource(EmpireUtil.asSupportsRdfId(theObj))) + ") } limit 1";

    String aSeRQL = "select distinct s\n" +
             (aNG == null ? "from\n" : "from context <" + aNG + ">\n") +
             "{s} p {o} where s = " + aDialect.asQueryString(EmpireUtil.asResource(EmpireUtil.asSupportsRdfId(theObj))) + " limit 1";
View Full Code Here

Examples of com.clarkparsia.empire.Dialect.asQueryString()

             (aNG == null ? "" : "from <" + aNG + ">\n") +
             "where {?s ?p ?o. filter(?s = " + aDialect.asQueryString(EmpireUtil.asResource(EmpireUtil.asSupportsRdfId(theObj))) + ") } limit 1";

    String aSeRQL = "select distinct s\n" +
             (aNG == null ? "from\n" : "from context <" + aNG + ">\n") +
             "{s} p {o} where s = " + aDialect.asQueryString(EmpireUtil.asResource(EmpireUtil.asSupportsRdfId(theObj))) + " limit 1";

    ResultSet aResults;

    if (theSource.getQueryFactory().getDialect() instanceof SerqlDialect) {
      aResults = theSource.selectQuery(aSeRQL);
View Full Code Here

Examples of com.clarkparsia.empire.Dialect.asQueryString()

    // TODO: if source supports describe queries, use that.

    String aSPARQL = "construct {?s ?p ?o}\n" +
             (aNG == null ? "" : "from <" + aNG + ">\n") +
             "where {?s ?p ?o. filter(?s = " + aDialect.asQueryString(aResource) + ") }";


    String aSeRQL = "construct {s} p {o}\n" +
             (aNG == null ? "from\n" : "from context <" + aNG + ">\n") +
             "{s} p {o} where s = " + aDialect.asQueryString(aResource) + "";
View Full Code Here

Examples of com.clarkparsia.empire.Dialect.asQueryString()

  }
 
  private static String getBNodeConstructQuery(DataSource theSource, Resource theRes, URI theProperty) {
    Dialect aDialect = theSource.getQueryFactory().getDialect();

    String aSerqlQuery = "construct * from {" + aDialect.asQueryString(theRes) + "} <" + theProperty.toString() + "> {o}, {o} po {oo}";

    String aSparqlQuery = "CONSTRUCT  { " + aDialect.asQueryString(theRes) + " <"+theProperty.toString()+"> ?o . ?o ?po ?oo  } \n" +
                "WHERE\n" +
                "{ " + aDialect.asQueryString(theRes) + " <" + theProperty.toString() + "> ?o.\n" +
                "?o ?po ?oo. }";
View Full Code Here

Examples of com.clarkparsia.empire.Dialect.asQueryString()

  private static String getBNodeConstructQuery(DataSource theSource, Resource theRes, URI theProperty) {
    Dialect aDialect = theSource.getQueryFactory().getDialect();

    String aSerqlQuery = "construct * from {" + aDialect.asQueryString(theRes) + "} <" + theProperty.toString() + "> {o}, {o} po {oo}";

    String aSparqlQuery = "CONSTRUCT  { " + aDialect.asQueryString(theRes) + " <"+theProperty.toString()+"> ?o . ?o ?po ?oo  } \n" +
                "WHERE\n" +
                "{ " + aDialect.asQueryString(theRes) + " <" + theProperty.toString() + "> ?o.\n" +
                "?o ?po ?oo. }";

    if (theSource.getQueryFactory().getDialect() instanceof SerqlDialect) {
View Full Code Here

Examples of com.clarkparsia.empire.Dialect.asQueryString()

    String aSerqlQuery = "construct * from {" + aDialect.asQueryString(theRes) + "} <" + theProperty.toString() + "> {o}, {o} po {oo}";

    String aSparqlQuery = "CONSTRUCT  { " + aDialect.asQueryString(theRes) + " <"+theProperty.toString()+"> ?o . ?o ?po ?oo  } \n" +
                "WHERE\n" +
                "{ " + aDialect.asQueryString(theRes) + " <" + theProperty.toString() + "> ?o.\n" +
                "?o ?po ?oo. }";

    if (theSource.getQueryFactory().getDialect() instanceof SerqlDialect) {
      return aSerqlQuery;
    }
View Full Code Here

Examples of si.mazi.rescu.Params.asQueryString()

    for (int i = 0; i < nameValueList.size(); i++) {
      Map.Entry<String, String> param = nameValueList.get(i);
      newParams.add(param.getKey(), param.getValue());
    }

    final String message = newParams.asQueryString();

    try {
      md.reset();

      byte[] digest = md.digest(message.getBytes("UTF-8"));
View Full Code Here

Examples of si.mazi.rescu.Params.asQueryString()

    for (int i = 0; i < nameValueList.size(); i++) {
      Map.Entry<String, String> param = nameValueList.get(i);
      newParams.add(param.getKey(), param.getValue());
    }

    final String message = newParams.asQueryString() + secretKey;

    try {
      md.reset();

      byte[] digest = md.digest(message.getBytes("UTF-8"));
View Full Code Here

Examples of si.mazi.rescu.Params.asQueryString()

    Params newParams = Params.of();
    for (Map.Entry<String, String> nameValue : nameValues.entrySet()) {
      newParams.add(nameValue.getKey(), nameValue.getValue());
    }

    String message = newParams.asQueryString();

    Mac mac = getMac();
    mac.update(message.getBytes());

    return String.format("%064x", new BigInteger(1, mac.doFinal()));
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.