Fan,

I'm sorry about the delay, but I finally got the Rya/Vagrant/OpenRDF
Workbench VM into a good spot.  Can you test out the instructions at:

https://github.com/amihalik/incubator-rya/blob/RYA-4/extras/vagrantExample/src/main/vagrant/readme.md

Once you run this VM, it should be straightforward to upload and query your
data through OpenRDF Workbench.

For instance, once you connect Rya and OpenRDF Workbench, you can open the
Workbench, click on "Add", and cut-and-paste your ntriples into the "RDF
Content" field.

Then you can click on "Query" and run this SPARQL query:

select * where { <http://mynamespace/ProductType1> ?p ?o. }

--Aaron

On Thu, Dec 17, 2015 at 1:00 PM Fan Yang <[email protected]> wrote:

> Hi Dr. Adina,
>
> I named my $RDF_DATA file as ntriplesFile and put it under the folder same
> as Java code’s. I tried to delete the empty loadrdf file and re-run the
> code, the same error message was showed up. The error log containing the
> command I’m using, loadrdf java code and ntripleFile are attached in this
> email. Thanks!
>
> Bests,
>
> Fan
>
>
>
> On Dec 16, 2015, at 2:55 PM, Fan Yang <[email protected]> wrote:
>
> Hi Dr. Adina,
>
> The one I’m using is an empty file. Cause when the war package is
> deployed, there is no such file named loadrdf under the certain folder. The
> n-Triples file I’m using is the one listed on the tutorial, the content is :
>
> <http://mynamespace/ProductType1> 
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
> <http://mynamespace/ProductType> .
> <http://mynamespace/ProductType1> 
> <http://www.w3.org/2000/01/rdf-schema#label> "Thing" .
> <http://mynamespace/ProductType1> <http://purl.org/dc/elements/1.1/publisher> 
> <http://mynamespace/Publisher1> .
>
> Bests,
>
> Fan
>
> On Dec 16, 2015, at 2:23 PM, Adina Crainiceanu <[email protected]> wrote:
>
> Fan,
>
> Can you please send the rdf file you are trying to load? Maybe that is the
> problem.
>
> Adina
>
> On Thu, Dec 3, 2015 at 12:44 PM, Fan Yang <[email protected]> wrote:
>
>> Hi Aaron,
>>
>> There is an additional information you may need: Once I checked the
>> web.rya folder under the webapps directory, there is no such file named
>> loadrdf or queryrdf, so I created empty ones. Maybe that causes the error.
>> Could you check your webapps directory to see if those files contain some
>> certain scripts? Thank you so much!
>>
>> Bests,
>>
>> Fan
>> > On Dec 3, 2015, at 3:15 AM, Fan Yang <[email protected]> wrote:
>> >
>> > Hi Aaron,
>> >
>> > Thank you so much for your help! I reproduced the Vagrant VM
>> successfully by following your instruction. Everything is working except
>> loading data part. Even I fixed the “/“ error in the code I still face the
>> same HTTP 500 error. I capture the error message when I load the link [4]
>> http://localhost:8080/web.rya/loadrdf?format=N-Triples <
>> http://localhost:8080/web.rya/loadrdf?format=N-Triples> on my browser
>> and copy the tomcat log file to you.
>> >
>> > Bests,
>> >
>> > Fan
>> >
>> > <catalina.2015-12-03.log>
>> > <error log>
>> >
>> >> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <[email protected]
>> <mailto:[email protected]>> wrote:
>> >>
>> >> Hi Fan,
>> >>
>> >> The tutorial is a bit dated, so it might be confusing/incorrect.
>> >>
>> >> You have a couple options:
>> >>
>> >> 1. You could start using the Vagrant vm that I'm putting together as a
>> "Rya Quickstart VM".
>> >>
>> >> It's a bit rough right now, and it doesn't have Hadoop or MapReduce
>> (so you can't do the bulk load), but it does have the script you mentioned
>> for loading N-Triples.  An early copy of the Vagrantfile is here [1].
>> >>
>> >> It'll take about 30 minutes to build the VM, but once you do, you'll
>> have the rya web endpoint up and running here [2] and you can ssh into the
>> box to load data.  Once you ssh into the machine, you can run 'java
>> LoadDataServletRun' to load n-triples files.  Infact, you that script will
>> take a "batchSize" parameter to split a large ntriples into small loads.
>> >>
>> >> 2. We can help you debug your current vm.
>> >>
>> >> The first step would be to try to hit this webpage [3] and see if the
>> sparql query page loads.  Also note that the URL you provided has an extra
>> "/" in it and you should try [4].
>> >>
>> >> If those load properly, then the issue might be the LoadDataServletRun
>> file itself (I haven't tried the one you mentioned), but you could try the
>> new one located at the bottom of the Vagrant file.
>> >>
>> >> If those links do not load properly, please send us your tomcat logs
>> and we'll take a look to see what's up with tomcat.
>> >>
>> >> --Aaron
>> >>
>> >> [1]
>> https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile
>> <
>> https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile
>> >
>> >> [2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <
>> http://192.168.33.10:8080/web.rya/sparqlQuery.jsp> or
>> http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <
>> http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp>
>> >> [3] http://localhost:8080/web.rya/sparqlQuery.jsp <
>> http://localhost:8080/web.rya/sparqlQuery.jsp>
>> >> [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <
>> http://localhost:8080/web.rya/loadrdf?format=N-Triples>
>> >> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <[email protected] <mailto:
>> [email protected]>> wrote:
>> >> Hi Aaron,
>> >>
>> >> Sorry to bother you again. I faced a new problem in loading RDF data
>> process. Following the tutorial, I created loadrdf folder and N-Triples
>> file $RDF_DATA, when I complied and run the java code, it gave the error
>> message like :”java.io.IOException: Server returned HTTP response code: 500
>> for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples <
>> http://localhost:8080/web.rya/loadrdf/?format=N-Triples>” my tomcat host
>> server’s URL is localhost and port number is 8080 by default.
>> >>
>> >> Also another question is about bulk load RDF data. There is an example
>> code in the tutorial, I’ve tried to find the similar jar package named
>> accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could
>> found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with
>> this one, it said it’s not a valid jar.
>> >>
>> >> Please let me know if I misunderstood and did anything wrong with the
>> tutorial, thank you very much!
>> >>
>> >> Bests,
>> >>
>> >> Fan
>> >>
>> >>
>> >>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <[email protected]
>> <mailto:[email protected]>> wrote:
>> >>>
>> >>
>> >>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
>> >>>
>> >>> My response to your email this morning is below.
>> >>>
>> >>> ---------- Forwarded message ---------
>> >>> From: Aaron D. Mihalik <[email protected] <mailto:
>> [email protected]>>
>> >>> Date: Thu, Nov 19, 2015 at 8:47 AM
>> >>> Subject: Re: Maven Build Error
>> >>> To: <[email protected] <mailto:
>> [email protected]>>
>> >>>
>> >>>
>> >>> Hey Fan!
>> >>>
>> >>> Thanks for downloading Rya and testing it out.
>> >>>
>> >>> It appears that you must use Maven 3 (for kinda a funny reason...
>> it'll hit the apache repo by default), and it appears that there are some
>> test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
>> >>>
>> >>> You should be able to build rya using this command (with maven 3):
>> mvn clean install -DskipTests
>> >>>
>> >>> Regardless, we need to create an ticket to fix your broken test.
>> Could you send out your test report?  Specifically, we're interested in :
>> dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
>> >>>
>> >>> --Aaron
>> >>>
>> >>>
>> >>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <[email protected] <mailto:
>> [email protected]>> wrote:
>> >>> Hi,
>> >>>
>> >>> My name is Fan Yang, I am a phd student in Information Systems
>> Department, UMBC. Currently I am working on Rya project under the
>> supervision of Dr. Adina. I faced a problem when I tried to reproduce the
>> development environment on my virtual machine.
>> >>>
>> >>> When I built Rya project by Maven, it gave me some error report and
>> same thing happened even I tried different versions of Maven. I am
>> attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven
>> 2.2.1 (log221.txt) and looking for some help. Thank you so much!
>> >>>
>> >>> My development environment is:
>> >>>
>> >>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
>> >>> Maven version: 3.3.3
>> >>> Java version: OpenJDK Runtime Environment 1.7.0_79
>> >>> Accumulo version: 1.6.1.2.2.4.2-2
>> >>> Hadoop version:2.6.0.2.2.4.2-2
>> >>>
>> >>> Bests,
>> >>>
>> >>> Fan
>> >>>
>> >
>>
>>
>
>
> --
> Dr. Adina Crainiceanu
> http://www.usna.edu/Users/cs/adina/
>
>
>
>

Reply via email to