Putuo Long distance passenger transport center has access to Jin
the unified social credit code / registration number of Guizhou Zhongjian Liquor Group Co., Ltd. is 91520115ma6h2yfq54, and the legal person is Chen Fuwei. At present, the company is in business.
Install the necessary software and configure the development environment
eclipse
MySQL server 5.5-win32
jena2.6.4
protege 4.3
mysql-connector-java-5.1.35 (JDBC of MySQL)
1_ ontology;
Open eclipse and create a new Java project named family_ ontology( File new Java project, enter the name of family_ Ontology, click Next)
3 Click Libraries - click add external jars to add all the. Jar files in JDBC and Jena respectively, and click finish in the directory of C: (program files / MySQL / MySQL connector J and G: (Jena / LIB)
4_ Create a new Java file (new class) with the name of military in the directory of ontology / SRC_ ontology.java
5_ The following code is written in ontology.java:
package military_ ontology;
importjava.io.*;// Import all classes of IO package
importjava.sql.sqlexception// Import SQL exception handling package
importcom. HP. HPL. Jena. DB. *// Import package of Jena link database
importcom. HP. HPL. Jena. RDF. Model. *// Import Jena related model package
importcom.hp.hpl.jena.ontology.ontmodel// Import ontmodel package
importcom.hp.hpl.jena.ontology.ontmodelspec// Import ontmodelspec package
modeldefmodel = null
if(connection.containsModel(" militaryDB"))// Judge whether the model named militarydb already has data
{
defmodel = maker. Openmodel (& quot; militaryDB", true);// If data exists, open this model
system. Out. Println & quot; Open the existing model & quot;)
}
else
{
defModel=maker.createModel(" militaryDB");// If the data does not exist, create this model
system. Out. Println & quot; Create a new model & quot;)
}
OntModelSpecspec=newOntModelSpec(OntModelSpec.OWL_ MEM);
OntModelDBModel=ModelFactory.createOntologyModel(spec,defModel);
/ / transform the temporary model into an ontology model (OWL format), where the spec parameter indicates that the model exists in memory
FileInputStreamread=null;// Define and initialize the file input stream variable read
try
{
filefile = newfile (& quot; g: / graation project / software / ontology instance / ontology 1428926241032 / ontology 1428926241032. Owl & quot;)
read=newFileInputStream(file);// Read OWL ontology file
}
catch (FileNotFoundException) / / grab the exception
{
e.printstacktrace()
System.out.println(" No ontology file was found to store, please check the file address and name & quot;)
}
System.out.println(" The ontology file has been converted to a byte stream file& quot;);
InputStreamReaderin=null;// Define and initialize the input stream conversion variable in
try
{
in = newinputstreamreader ((FileInputStream) read, & quot; UTF-8");// Convert byte stream file to UTF-8 encoding
system. Out. Println & quot; The byte stream file has been converted to UTF-8 encoding& quot;);
}
catch (unsupported encoding exception) / / grab the conversion exception
{
e.printstacktrace()
System.out.println(" The above character set is not supported& quot;);
}
defModel.read(in,null);// Read the stream file into the database model
defmodel. Commit()// Save the model to the database
system. Out. Println & quot; After the data conversion, the ontology file has been stored in the database& quot;);
try
{
in.close();
System.out.println(" The byte stream file has been closed& quot;);
}
catch (IOException) / / grabs the input / output exception
{
e.printstacktrace()
System.out.println(" Unable to close the byte stream file& quot;);
}
try
{
connection.close();// Close connection
system. Out. Println & quot; The connection has been closed& quot;);
}
catch(SQLExceptione)
{
e.printStackTrace();
System.out.println(" The connection could not be closed& quot;);
}
}
catch(RDFRDBExceptione)
{
System.out.println(" Exception occurred & quot;)
}
System.out.println(" The ontology file has been persisted to the database without exception
After executing the program, the ontology is stored in MySQL database. The database will generate the following tables:Jena_ g1t0_ Reif stores the processed ontology data
Jena_ g1t1_ Stmt stores the data information of ontology
Jena_ Graph stores the name and unique identifier of each user graph
Jena_ long_ Lit stores the long character creation constant
Jena, which is not convenient to store directly in the statement table_ long_ Uri stores the long resource URI which is not convenient to store directly in the statement table
Jena_ Prefix stores the prefix of the URI. The prefix is only stored once, saving space
Jena_ sys_ Stmt stores the metadata information of ontology
the main data exists in two tables
1)military_ ontology.jena_ g1t1_ Stmt stores the data information of ontology_ ontology.jena_ sys_ Stmt stores metadata information of ontology
although there are different definitions of ontology, there is still a certain understanding of it. Generally speaking, ontology used in philosophy before Marxism is different in broad sense and narrow sense. After Marxism, philosophy has been integrated into practice
in a broad sense, it refers to the ultimate nature of all reality, which needs to be recognized through epistemology. Therefore, to study the ultimate nature of all reality is ontology, and to study how to recognize it is epistemology, which is symmetrical between ontology and epistemology
in the narrow sense, in the broad sense of ontology, there are the study of the origin and structure of the universe and the study of the nature of the universe. The former is cosmology, and the latter is ontology, which is symmetrical between ontology and cosmology
Marxist philosophy does not adopt the method of ontology and epistemology, or ontology and cosmology, but uses dialectical materialism to explain the whole problem of philosophy
(from the dictionary of foreign philosophy edited by Feng Qi)
Specific analysis is as follows:
first, route
it is better to get off at Putuo passenger transport center directly
1. From Ningbo to Zhoushan, you can buy Zhoushan Shenjiamen station directly from Ningbo north bus station or south bus station, which is the Chengbei station in Putuo District. This bus first passes Dinghai station in Zhoushan, and then ends at Chengbei station in Putuo
2. After getting off at Chengbei station, you can take bus No.27 in the station directly to wugong wharf, the terminal. There are tickets for Putuo Mountain at any time at that wharf. If the weather is good, there will be one flight in half an hour
On May 8, 2007 (Dinghai), Zhoushan Putuo Mountain scenic spot was officially approved as a national 5A scenic spot by the National Tourism Administration“ There are fairy mountains on the sea, and the mountains are in the void. "Putuo Mountain has become a famous tourist attraction at home and abroad for its magic, sacred and mysterious. Putuo Mountain is one of the first batch of 44 national key scenic spots announced by the State Council. It is China's national 5A scenic spot, national civilized mountain and sanitary mountain, and the only ISO14000 national demonstration area in Zhejiang ProvinceThere is no route from Ningbo south station to Zhoushan Putuo Long distance passenger station. There are several schemes as follows:
-
Rail Transit Line 1 -- 720 -- Putuo Mountain Baifeng, 4 hours and 36 minutes in total
< / OL >
because virtual currency has no legal status at all, and it has not been included in the scope of legal protection. In addition, virtual currency is not issued by any national organization, but an encrypted virtual currency issued by private indivials. Therefore, virtual currency can not be recognized by the government Strong>
but from the current market situation of virtual currency, I think the overall transaction price is high, and the popularity of many virtual currencies is not high, but the value of money is not low. There is a serious bubble phenomenon. Once the external phenomenon breaks the bubble, the virtual currency will shrink dramatically. This kind of situation is definitely unacceptable to the general state and government, so it is definitely not recognized by the government to a certain extent< only in this way can each country and government ensure its financial security and make its economy more solid and effective strong>