[ 
https://issues.apache.org/jira/browse/RYA-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427033#comment-15427033
 ] 

ASF GitHub Bot commented on RYA-151:
------------------------------------

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

    https://github.com/apache/incubator-rya/pull/68#discussion_r75374195
  
    --- Diff: 
extras/rya.benchmark/src/test/java/org/apache/rya/benchmark/query/BenchmarkQueriesReaderIT.java
 ---
    @@ -0,0 +1,55 @@
    +/**
    + * 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.benchmark.query;
    +
    +import static org.junit.Assert.assertEquals;
    +
    +import java.io.ByteArrayInputStream;
    +import java.io.InputStream;
    +
    +import javax.xml.bind.JAXBException;
    +
    +import 
org.apache.rya.benchmark.query.QueryBenchmark.BenchmarkQueriesReader;
    +import org.junit.Test;
    +import org.xml.sax.SAXException;
    +
    +import com.google.common.base.Charsets;
    +
    +/**
    + * Tests the methods of {@link BenchmarkQueriesReader}.
    + */
    +public class BenchmarkQueriesReaderIT {
    +
    +    @Test
    +    public void load() throws JAXBException, SAXException {
    +        // Unmarshal some XML.
    +        final String xml =
    +                "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
    +                "<BenchmarkQueries>\n" +
    +                "    <SPARQL><![CDATA[SELECT ?a WHERE { ?a <http://likes> 
<urn:icecream> . }]]></SPARQL>" +
    --- End diff --
    
    So the two parameters that I was planning on having you configure are:
    1. What SPARQL query to execute.
    2. The number of results to read from the query.


> Rya Test Bed
> ------------
>
>                 Key: RYA-151
>                 URL: https://issues.apache.org/jira/browse/RYA-151
>             Project: Rya
>          Issue Type: Wish
>          Components: clients, dao
>            Reporter: Puja Valiyil 
>            Assignee: Kevin Chilton
>
> It would be nice if there was a test bed checked in with Rya that could be 
> used for benchmark testing.  This test bed should include options for  
> uploading data to a rya instance, then issuing some benchmark queries (and 
> timing them in a way that everyone agrees is sound).  It could be a command 
> line tool.  It should be dao agnostic (work on either mongo, accumulo, etc.). 
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to