This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ChatComet extends CometActor with CometListener { | |
//Register as a listener with the ChatCometServer | |
def registerWith = ChatCometServer | |
//No pre render needed | |
def render = <br/> | |
//Proccess messages | |
//called during update from ChatCometServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"properties": { | |
"locator": { | |
"index": "not_analyzed", | |
"type": "string", | |
"store": "yes" | |
}, | |
"instanceOf": { | |
"index": "not_analyzed", | |
"type": "string", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.create = function (blog, user, callback) { | |
console.log('ARTICLES_CREATE '+JSON.stringify(blog)); | |
var article = new Topic(); | |
article.locator = uuid.newUUID(); | |
article.instanceOf = self.types.BLOG_TYPE; | |
article.creatorId = user._id; | |
article.largeIcon = icons.PUBLICATION; | |
article.smallIcon = icons.PUBLICATION_SM; | |
//we have to take this apart, build the object from scratch | |
// because of tags, which are relations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Really, three js files in one: the devtest, Topic, and Dataprovider | |
/** | |
* textsearchtest | |
*/ | |
var MongoClient = require('mongodb').MongoClient | |
, dp = require('../core/dataprovider') | |
, topic = require('../core/topic'); | |
var myCollection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"topics": { | |
"mappings": { | |
"core": { | |
"properties": { | |
"lox": { | |
"index": "not_analyzed", | |
"type": "string", | |
"store": true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void checkIndexes(IResult result) { | |
List<List<String>>indexes = (List<List<String>>)environment.getProperties().get("IndexNames"); | |
List<String>indices = new ArrayList<String>(); | |
environment.setIndices(indices); | |
int len = indexes.size(); | |
ImmutableSettings.Builder settings = null; | |
IndicesExistsRequestBuilder ib; | |
IndicesExistsResponse ir; | |
CreateIndexRequest cir; | |
CreateIndexResponse afr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The relation struct: | |
var struct = module.exports = function(relationType, relationLocator, relationLabel, documentSmallIcon, | |
documentLocator, documentLabel, documentType, sORt) { | |
var result = {}; | |
result.relationLocator = relationLocator; | |
result.relationType = relationType; | |
result.relationLabel = relationLabel; | |
result.documentType = documentType; | |
result.icon = documentSmallIcon; | |
result.locator = documentLocator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Executing command: "build" | |
:generateTypeSystem | |
:compileJavaC:\projects\SolrWatson\QuestionAnswering\YodaQA-APACHE\yodaqa\build\generated-src\jcasgen\main\de\tudarmstadt\ukp\dkpro\core\api\lexmorph\type\morph\Morpheme.java:17: error: duplicate class: de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.morph.Morpheme | |
public class Morpheme extends Annotation { | |
^ | |
C:\projects\SolrWatson\QuestionAnswering\YodaQA-APACHE\yodaqa\build\generated-src\jcasgen\main\de\tudarmstadt\ukp\dkpro\core\api\lexmorph\type\morph\Morpheme_Type.java:19: error: duplicate class: de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.morph.Morpheme_Type | |
public class Morpheme_Type extends Annotation_Type { | |
^ | |
C:\projects\SolrWatson\QuestionAnswering\YodaQA-APACHE\yodaqa\build\generated-src\jcasgen\main\de\tudarmstadt\ukp\dkpro\core\api\lexmorph\type\morph\MorphologicalFeatures.java:17: error: duplicate class: de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.morph.MorphologicalFeatures | |
public class MorphologicalFeatures extends Annotation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import javax.swing.JFileChooser; | |
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream; | |
/** | |
* @author park | |
* @license Apache 2 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The embedded driver: | |
public class EmbeddedDriver implements IGraphDriver { | |
private JSONGraphStoreEnvironment environment; | |
//TODO make this a config property | |
private final String DBPATH = "/data/bg/mygraphjournal"; | |
private BigdataGraph _MyGraph; | |
public EmbeddedDriver() {} | |
@Override |
OlderNewer