I'm beginner in semantic web, actually try to build web, I built my ontology, now I try to upload it into MySQL.
Which Java I must use (Java EE SDK or Java JDK) and which Jena (only Jena or Jena TDB OR Jena SDB)?
Normally, use Apache Jena TDB. It's faster and scales better. Use SDB when you must use an SQL database.
MySQL will use its Connector-J JDBC driver. I don't know what the upload software looks like, but that's how it can connect to MySQL. It'll assume that the schema's been created before you try to INSERT any data.
Perhaps this link can help you make your decision:
http://answers.semanticweb.com/questions/506/pros-and-cons-for-different-jena-backends-sdb-vs-tdb
It appears to be an SO-like Q&A site for semantic web. That might be useful for your future work. It could be a better source for answers that SO.
Related
I have some experience with java ee development and some web applications.
Now I have to create a java program on AS400, one I have never heard before. Program is to create xml file from db2.
Do you have any idea how I should approach the development with no knowledge of AS400 and DB2?
I do appreciate any kind of suggestions and help!!!
Well, in general, Java, on IBM i (previously known as AS/400), is java ... and DB2 is accessed via JDBC... so there isn't a whole lot different to consider.
You'll want to get the JT400 library for a JDBC driver. Javadocs for JT400 can be found here.
If you have specific questions, or run into problems, consider subscribing to the JAVA400-L mailing list.
In the IT class room I constantly hear chat about the derby database not being built for netbeans. I write code in java and becuase I am learning to implement databases and I have the oppurtunity to be taught sql code. My question is, is the derby database not meant for netbeans and if not why why? So far it works fine for me. Our education system is a bit out of order so I like to be well informed about things.(You don't have to worry about making sense about the last statement).I use the database for recording details in shop and company scenarios so far. So answer could relate to this.
The Java DB(Derby) database is Oracle's supported distribution of Apache Derby. Java DB(Derby) is a fully transactional, secure, standards-based database server, written entirely in Java, and fully supports SQL, JDBC API, and Java EE technology. The Java DB database is packaged with the GlassFish application server, and is included in JDK 8(except Mac OS X) as well.
There is a whole official NetBeans IDE Tutorial about Working with the Java DB(Derby) Database. Whoever has suggested you those incorrect details,he might not have got to work with Derby Database OR might be a fan of Oracle/MySQL,etc. databases! But,I and all the commentators post suggest you to move frankly with Derby database as there is no such problem!
Also,I am leaving you the official tutorial's link---> Official NetBeans IDE Tutorial on Java DB(Derby) Database
can you please give the steps how to make simple program of jdbc on mac .
I have eclipse on my mac .so I need steps what to do next so that can able to make program of jdbc ?
I do lot of RND but they provide for windows.But I also download Mysql from this link
http://dev.mysql.com/downloads/file.php?id=450342
and download workbench from this link
http://dev.mysql.com/downloads/file.php?id=412161
Then can you please may I right ?
or what next I have to do to make jdbc program ?
Install and start MySql.
Download the MySql JDBC driver. Try here: http://dev.mysql.com/downloads/connector/j/. Extract all the files and add the jar to your eclipse project.
Now you can start coding. Look up the docs for DriverManager, Statement and ResultSet.
There is not much difference at all in using a Mac than other platforms for working with JDBC.
JDK
You need an implementation of Java, a "JDK". See my answer to another question about installing Java 7 and Java 8 on a Mac, including links for downloading a JDK. Before doing the database stuff, be sure this works in the Terminal.app program: java -version
JDBC Driver
You need a JDBC driver specific to your particular database engine.
H2 Database
I suggest trying the H2 database rather than MySQL, only because it may be a gentler easier way to get started. H2 is pure Java, rather simple in terms of installing and administrating, and free-of-cost. H2 comes with its own JDBC driver. The H2 web site has a quick-start page and a tutorial page. It is not written explicitly for Mac OS X, but you should be able to "translate" as needed.
Oracle Tutorial
Then follow the JDBC tutorial provided by Oracle.
Also: StackOverflow is for specific questions on programming, not general or wide-ranging discussion.
I have to develop a Spring MVC project. This give user the possibility to work online using normal web access. I also need to give user possibility to work offline.
So I want to develop a standalone java app that the users can install on theirs pc. They can exchange data with server using JSON with Jackson for example.
My question is about the client side. Supposing to handle data with an ORM like Hibernate, which standalone db are best suited for avoid to install DBMS (like mysql, mssql, ...)?
I want to avoid install many software on client.
I have developed a project like this, where the clients are Android tablet, the ORM tool is ormlite and the db sqlite. The db consist in a file.
Thank you for any response!!
Marco
I'd actually recommend H2 Database over Apache Derby. I've used both, and found that Derby can be difficult to configure and access in a non-embedded manner (which may not be an issue for you, but it was for me).
H2 was faster also.
Apache Derby works well locally, is embeddable, fast and small (2.5 MB).
If you are more comfortable working with "officially supported" products, you could go with JavaDB - it's Derby in disguise.
I'm looking for a Java assembly similar to the Enterprise Library assembly that Microsoft wrote, which includes a Cryptography, Database, Logging, Security, Validation and other application blocks that wrap around the .NET framework. It's main purpose is to improve performance and to provide an API that makes it easier to build applications, so the application developer doesn't have to re-invent the wheel on the core libraries for doing common tasks. I'm primarily looking for a nice assembly for connecting to Oracle and SQL Server (for databases), as well as the other application blocks that I mentioned above. I am going to be building a bunch of reporting tools using a Java back-end and would like a jump start.
For Oracle and SQL Server, look for the JDBC drivers for each one (SQL Server here and Oracle here).
For cryptography, Java already comes with it bundled in, click here for docs.
For logging, there are many libraries:
Log4j
Logback
Java logging API
Security and validations are dependent on what kind of application you are using and there are many options other than the ones provided by Oracle itself, you need to provide more information what kind of app you are going to build so that people can provide better answers.
Also, most of the tools people use in the community are not provided by Oracle (this is a main difference between the Java and .Net ecosystem) so, you will find that there are many solutions on open source projects for the same problems and you will have to think, try and decide wich one of them to use.
I think you're describing Java EE. See:
http://en.wikipedia.org/wiki/Java_Platform,_Enterprise_Edition
http://www.oracle.com/technetwork/java/javaee/overview/index.html