Github user jdasch commented on a diff in the pull request:

    https://github.com/apache/incubator-rya/pull/220#discussion_r136646583
  
    --- Diff: 
extras/rya.pcj.fluo/pcj.fluo.api/src/main/java/org/apache/rya/indexing/pcj/fluo/api/CreatePeriodicQuery.java
 ---
    @@ -0,0 +1,214 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *   http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +package org.apache.rya.indexing.pcj.fluo.api;
    +
    +import java.util.Optional;
    +
    +import org.apache.accumulo.core.client.Connector;
    +import org.apache.fluo.api.client.FluoClient;
    +import org.apache.rya.api.client.CreatePCJ.ExportStrategy;
    +import org.apache.rya.indexing.pcj.fluo.app.query.FluoQuery;
    +import org.apache.rya.indexing.pcj.fluo.app.query.PeriodicQueryNode;
    +import 
org.apache.rya.indexing.pcj.fluo.app.query.UnsupportedQueryException;
    +import org.apache.rya.indexing.pcj.fluo.app.util.FluoQueryUtils;
    +import org.apache.rya.indexing.pcj.fluo.app.util.PeriodicQueryUtil;
    +import org.apache.rya.indexing.pcj.storage.PeriodicQueryResultStorage;
    +import org.apache.rya.indexing.pcj.storage.PeriodicQueryStorageException;
    +import org.apache.rya.periodic.notification.api.PeriodicNotificationClient;
    +import 
org.apache.rya.periodic.notification.notification.PeriodicNotification;
    +import org.openrdf.query.MalformedQueryException;
    +import org.openrdf.query.algebra.evaluation.function.Function;
    +
    +import com.google.common.collect.Sets;
    +
    +
    +/**
    + * Object that creates a Periodic Query.  A Periodic Query is any query
    + * requesting periodic updates about events that occurred within a given
    + * window of time of this instant. This is also known as a rolling window
    + * query.  Period Queries can be expressed using SPARQL by including the
    + * {@link Function} indicated by the URI {@link 
PeriodicQueryUtil#PeriodicQueryURI}
    + * in the query.  The user must provide this Function with the following 
arguments:
    + * the temporal variable in the query that will be filtered on, the window 
of time
    + * that events must occur within, the period at which the user wants to 
receive updates,
    + * and the time unit.  The following query requests all observations that 
occurred
    + * within the last minute and requests updates every 15 seconds.  It also 
performs
    + * a count on those observations.
    + * <li>
    + * <li> prefix function: http://org.apache.rya/function#
    + * <li>               "prefix time: http://www.w3.org/2006/time# 
    + * <li>               "select (count(?obs) as ?total) where {
    + * <li>               "Filter(function:periodic(?time, 1, .25, 
time:minutes))
    + * <li>               "?obs uri:hasTime ?time.
    + * <li>               "?obs uri:hasId ?id }
    + * <li>
    --- End diff --
    
    Remove the `<li>` tags and replace with
    ```
    <pre>
    your preformatted content
    </pre>
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to