Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have multiple SQL queries (SELECT statements using FROM and WHERE - standard), and was looking for a parser in which I can feed in SQL queries as text and gives out the column names being used and corresponding table and schema names. Parser should take care of aliases and joins to notice distinct column names that are being used.
Please give me ideas to use a java library and also an exel API because the queries are in EXCEL cell. Would be great if to get something. Thanks
I would code an SQL parser but don't want to reinvent the wheel and not confident that I could make it work completely. Thanks for your input.
Please let me know if you know of parsers in other languages that would work.
Thanks
I had to do some SQL parsing a short while ago. I used GSP: http://www.sqlparser.com/
It's closed source and not free so GSP might not be an option for you. I wasn't able to find a free SQL Parser for Teradata so GSP was my best option. If you decide to go with GSP, the Java docs aren't that great. Your best bet is to find example code from the examples section on their website and work from there.
Apache POI is a good API for excel: http://poi.apache.org/
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I know this might be stupid question but i am new here. I want to create a mysql database and implement it using java or php and attach the working database to a cd. the question is do you know guys know any online courses to help me learn how to implement mysql with java. and is php needed or only java and mysql needed. i have good knowledge about java but i am new to databases. i just know some sql and i used to use access to create database. my database needs to store info and enable different users to register and log in and order and my database should store what they order. i thought lynda course essential mysql with php but i am not sure if it is what i am looking for. sorry guys it is very stupid but i never used php or mysql and i am looking just for a starting point. thanks for help.
Please follow the following links. Will be helpful for you.
Java + Mysql sample->Mkyong
Java + Mysql sample->vogella
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a validation project where I need to parse large numbers of records each of which has around 200 fields. Fields have inter-dependencies from a validation perspective, minimums, maximums and so on. Some of the rules are expected to change over time. As a consequence I think I probably need to load the rules from xml? An extension of this is that I need to be able to generate a detailed error report listing each record and all errors associated with this record. I have been hunting for validation frameworks that may support this type of functionality and am aware of the more common ones like Hibernate and maybe JValidations, however I am looking for some guidance / recommendations for a well supported flexible framework.
My approach thus far has been to create a validation class that parses the record entity testing each field with "if-then-else" type statements. This works of course, however it is inflexible and consequently messy to manage - hence my thought that some sort of rules (engine) based approach possibly coded in xml would be better. Regardless, it would be far beyond my skill level to design such a solution.
Thanks in anticipation
You can consider OVal framework for validations and you have an option of Apache Validator and hibernate validator.
Also please refer to this link for more details.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am searching for data flow diagram creator for Java source code. Please suggest me any tool for the same.
SD Java parser with flow analysis.
You have to export the data flow graph to DOT to see it. The front end has support to do that.
I don’t know any software which create data flow diagram from java source code, however, I know that Microsoft Visio has the features of reverse engineering to create data flow diagram. But I don’t know whether it does for java source code or not. I will suggest you to try Visio 2010 for creating DFD. Hope this may help you.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to create a simple application using Jena and SPARQL, that inserts, deletes, updates, and queries some OWL/RDF data. I worked on Protégé to create the ontology and noticed SPARQL in it,
but I want to run SPARQL queries programatically with Jena in Java.
I saw “Using Jena to create a SPARQL query on DBpedia” and I know how to use SPARQL with Jena, but I want to upload it to server or to work on localhost or whatever.
SPARQL doesn't support operations like update or insert, but only querying. Are there any other languages/methods that support these operations, or should I manipulate data manually in java in each application?
How can I upload my ontology, preferably with something related to Protégé?
I tried Protege2Joseki but couldn't get it to work.
Are RDF-stores just for RDF? I am working on OWL files. For example, if I am using MySQL as an RDF-store, would it also work for OWL concepts?
I think that on Stack Overflow you should really ask one question per posting. Asking four questions at once makes it hard for you to indicate when you have got the answer you're looking for.
Answering your questions in turn:
It sounds like you want a endpoint loaded with your queries and ontologies which you and others can query using SPARQL. For this, you can use Joseki.
The SPARQL working group at W3C is currently standardising update extensions to the SPARQL language. Some of the existing query engines, including the one in Jena, already implement the proposed update mechanisms as SPARQL extensions.
I don't understand question 3.
Yes, an RDF-triple store can store OWL, because OWL is a specialisation of RDF that provides additional semantic representations. Many tools, including Jena, provide specialised APIs for storing, retrieving and manipulating OWL constructs stored in RDF triple stores.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I know that there are many examples of JavaCC parsers here,
but they all do nothing. They just accept a string, or produce parsing errors.
What I need is a few examples of real parsers, which actually do something during parsing. (Such as building a DOM tree during parsing an XML string).
Please help! ;)
Take a look at EcmaScript.jj that DOJO library maintains over here - http://svn.dojotoolkit.org/src/trunk/tools/jslinker/src/org/dojo/jsl/parser/EcmaScript.jjt
It parses real javascript and then optimizes it. Read more about what it does out here http://svn.dojotoolkit.org/src/trunk/tools/jslinker/docs/readme.txt
http://www.engr.mun.ca/~theo/JavaCC-Tutorial/javacc-tutorial.pdf
http://www.cobase.cs.ucla.edu/projects/coxml/doc/Eric-Master.pdf
The JavaCC website features a grammar repository with grammars for many programming languages (C,C++,VB,etc.).
Check it out
SourceMeter, as patched, uses JavaCC to derive Java source code metrics.