Hi Aaron, There is no such files in these two directories. Actually I cannot access rya at the beginning, there is no "web.rya” folder under webapps. So I just download the rya project zip file and use maven to build it.
Bests, Fan > On Jan 12, 2016, at 11:00 PM, Aaron D. Mihalik <[email protected]> > wrote: > > I'm kinda worried that there is no create-RyaAccumuloSail.xsl. > > Can you check to see if rya libs are installed in the OpenRDF Web apps? > > run these two commands and see if you have any rya files in the two lib > directories: > > ls /var/lib/tomcat7/webapps/openrdf-sesame/WEB-INF/lib/rya* > > ls /var/lib/tomcat7/webapps/openrdf-workbench/WEB-INF/lib/rya* > > Also, are you able to access the Rya web page at: > http://rya-example-box:8080/web.rya/sparqlQuery.jsp > <http://rya-example-box:8080/web.rya/sparqlQuery.jsp> > > --Aaron > > On Tue, Jan 12, 2016 at 10:23 PM Fan Yang <[email protected] > <mailto:[email protected]>> wrote: > Hi Aaron, > > I followed the steps you suggest and checked the folder “transformations”, > there is still no such file named “create-RyaAccumuloSail.xsl”. I attach my > screenshot of openrdf-workbench, those types listed are the ones I have in > that folder. Thanks! > > Bests, > > Fan > > >> On Jan 12, 2016, at 2:33 PM, Aaron D. Mihalik <[email protected] >> <mailto:[email protected]>> wrote: >> > >> You shouldn't have to make any changes... I've attache a screen shot of what >> you should see. >> >> If you don't see "Rya Accumulo Store" try these steps: >> >> Restart Tomcat >> -- 1. Log into the vm (run: "ssh vagrant@rya-example-box" with pass: vagrant) >> -- 2. switch to root (run: "su" with pass: vagrant) >> -- 3. restart tomcat (run: "service tomcat7 restart") >> -- 4. open the "new repository" page again and see if rya was added (new >> repo page: >> http://rya-example-box:8080/openrdf-workbench/repositories/NONE/create >> <http://rya-example-box:8080/openrdf-workbench/repositories/NONE/create>) >> >> If that doesn't work, make sure that the openrdf-workbench transforms are >> correct: >> The transforms are in this directory: >> /var/lib/tomcat7/webapps/openrdf-workbench/transformations/ >> >> -- 1. Verify that this file exists: create-RyaAccumuloSail.xsl >> --- 2. Verify that create.xsl has been updated for rya. (run: "cat >> create.xsl | grep Rya" and make sure there's some stuff there.) >> >> Thanks for testing this out. Let me know if this resolves your issues. >> >> --Aaron >> >> >> >> >> On Tue, Jan 12, 2016 at 1:04 PM Fan Yang <[email protected] >> <mailto:[email protected]>> wrote: >> Hi Aaron, >> >> Thank you so much for your help! I followed the instructions and created the >> VM. Everything works fine except one thing I am not very clear: in >> “connecting to Rya via OpenRDF Workbench” step, I cannot find “Rya Accumulo >> Store” in “Type” option. I am wondering if I should make some configurations >> in Rya and Accumulo. >> >> Bests, >> >> Fan >> >>> On Jan 1, 2016, at 10:54 PM, Aaron D. Mihalik <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> 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 >>> >>> <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 >>> <http://mynamespace/ProductType1>> ?p ?o. } >>> >>> --Aaron >>> >>> On Thu, Dec 17, 2015 at 1:00 PM Fan Yang <[email protected] >>> <mailto:[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] >>>> <mailto:[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://mynamespace/ProductType1>> >>>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type >>>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>> >>>> <http://mynamespace/ProductType <http://mynamespace/ProductType>> . >>>> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> >>>> <http://www.w3.org/2000/01/rdf-schema#label >>>> <http://www.w3.org/2000/01/rdf-schema#label>> "Thing" . >>>> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> >>>> <http://purl.org/dc/elements/1.1/publisher >>>> <http://purl.org/dc/elements/1.1/publisher>> >>>> <http://mynamespace/Publisher1 <http://mynamespace/Publisher1>> . >>>> Bests, >>>> >>>> Fan >>>>> On Dec 16, 2015, at 2:23 PM, Adina Crainiceanu <[email protected] >>>>> <mailto:[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] >>>>> <mailto:[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] >>>>> > <mailto:[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> >>>>> > <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]> <mailto:[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> >>>>> >> >>>>> >> <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> >>>>> >> <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> >>>>> >> <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> >>>>> >> <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> >>>>> >> <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]> <mailto:[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> >>>>> >> <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]> <mailto:[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]> <mailto:[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]> >>>>> >>> <mailto:[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]> <mailto:[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/ <http://www.usna.edu/Users/cs/adina/> >>> >> > >> <pasted1.png> > > <VirtualBox_rya-example-box_12_01_2016_22_16_33.png><VirtualBox_rya-example-box_12_01_2016_22_16_33.png>
