-- MySQL dump 10.13  Distrib 5.6.13, for Win32 (x86)
--
-- Host: localhost    Database: sem_index
-- ------------------------------------------------------
-- Server version	5.6.17

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `attributes`
--

DROP TABLE IF EXISTS `attributes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attributes` (
  `attrid` int(11) NOT NULL AUTO_INCREMENT,
  `value` varchar(45) NOT NULL,
  PRIMARY KEY (`attrid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `attributes`
--

LOCK TABLES `attributes` WRITE;
/*!40000 ALTER TABLE `attributes` DISABLE KEYS */;
/*!40000 ALTER TABLE `attributes` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `dataindex`
--

DROP TABLE IF EXISTS `dataindex`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dataindex` (
  `lemma` varchar(255) DEFAULT '',
  `objectid` int(11) DEFAULT '0',
  `attrid` int(11) DEFAULT '0',
  `freq` DECIMAL(10,3) DEFAULT '0.0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `dataindex`
--

LOCK TABLES `dataindex` WRITE;
/*!40000 ALTER TABLE `dataindex` DISABLE KEYS */;
/*!40000 ALTER TABLE `dataindex` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `lexicon`
--

DROP TABLE IF EXISTS `lexicon`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lexicon` (
  `nodeid` int(11) NOT NULL AUTO_INCREMENT,
  `value` varchar(255) NOT NULL,
  PRIMARY KEY (`value`),
  UNIQUE KEY `nodeid` (`nodeid`) USING BTREE,
  KEY `ind_lexwd_val` (`value`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `lexicon`
--

LOCK TABLES `lexicon` WRITE;
/*!40000 ALTER TABLE `lexicon` DISABLE KEYS */;
/*!40000 ALTER TABLE `lexicon` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `lexicon_missing`
--

DROP TABLE IF EXISTS `lexicon_missing`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lexicon_missing` (
  `nodeid` int(11) NOT NULL AUTO_INCREMENT,
  `value` varchar(255) NOT NULL,
  PRIMARY KEY (`value`),
  UNIQUE KEY `nodeid_UNIQUE` (`nodeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `lexicon_missing`
--

LOCK TABLES `lexicon_missing` WRITE;
/*!40000 ALTER TABLE `lexicon_missing` DISABLE KEYS */;
/*!40000 ALTER TABLE `lexicon_missing` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `neighbors`
--

DROP TABLE IF EXISTS `neighbors`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `neighbors` (
  `node1id` int(11) NOT NULL,
  `node2id` int(11) NOT NULL,
  `relation` int(11) NOT NULL,
  `weight` decimal(10,3) DEFAULT '0.000',
  `hasDataNode` TINYINT(1) NOT NULL DEFAULT 0,
  `freq` int(11) NOT NULL DEFAULT 0,
   PRIMARY KEY (`node1id`,`node2id`,`relation`,`hasDataNode`,`freq`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `neighbors`
--

LOCK TABLES `neighbors` WRITE;
/*!40000 ALTER TABLE `neighbors` DISABLE KEYS */;
/*!40000 ALTER TABLE `neighbors` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `postinglist`
--

DROP TABLE IF EXISTS `postinglist`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `postinglist` (
  `nodeid` int(11) NOT NULL,
  `objectid` int(11) NOT NULL,
  `attrid` int(11) NOT NULL,
  `weight` decimal(10,3) DEFAULT '1.000',
  PRIMARY KEY (`nodeid`,`objectid`,`attrid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `postinglist`
--

LOCK TABLES `postinglist` WRITE;
/*!40000 ALTER TABLE `postinglist` DISABLE KEYS */;
/*!40000 ALTER TABLE `postinglist` ENABLE KEYS */;
UNLOCK TABLES;

DROP TABLE IF EXISTS `datanodes`;

CREATE TABLE `datanodes` (
  `objectid` INT NOT NULL,
  `weight` DECIMAL(10,3) NOT NULL DEFAULT 0,
  PRIMARY KEY (`objectid`)
 )ENGINE=InnoDB DEFAULT CHARSET=utf8;



/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2014-12-26 22:00:21
