Instantly share code, notes, and snippets.

View using-dhcp.ttl
python extrescal.py --latent 2 --lmbda 0.001 --input tiny-mixed-example --outputentities entity.embeddings.csv --outputterms term.embeddings.csv --outputfactors latent.factors.csv --log extrescal.log
false file:///home/brent/Downloads/Brents-Ext_RESCAL/oldfood.ttl http://purl.org/dc/terms/title Food Growing Methods
false file:///home/brent/Downloads/Brents-Ext_RESCAL/oldfood.ttl http://www.w3.org/2000/01/rdf-schema#comment For independence and resource optimization, some or all of the astronauts' diet must be grown in-situ. Various forms have been proposed, from greenhouses to hydroponics, but there must also be optimization in the types of food grown to maximize caloric and nutrient output compared to water and energy input.
false file:///home/brent/Downloads/Brents-Ext_RESCAL/oldfood.ttl http://data.thespaceplan.com/ontologies/lsi#relatedIndustriesFields Health and Medicine
false file:///home/brent/Downloads/Brents-Ext_RESCAL/oldfood.ttl http://data.thespaceplan.com/ontologies/lsi#averageEstInvestmentCost
View brents-ext-rescal-test
python extrescal.py --latent 2 --lmbda 0.001 --input tiny-mixed-example --outputentities entity.embeddings.csv --outputterms term.embeddings.csv --outputfactors latent.factors.csv --log extrescal.log
false file:///home/brent/Downloads/Brents-Ext_RESCAL/oldfood.ttl http://data.thespaceplan.com/ontologies/lsi#relatedIndustriesFields Health and Medicine
false file:///home/brent/Downloads/Brents-Ext_RESCAL/oldfood.ttl http://data.thespaceplan.com/ontologies/lsi#averageEstTimetoMaturity 0.0 (time to maturity pulled from children pages)
false file:///home/brent/Downloads/Brents-Ext_RESCAL/oldfood.ttl http://data.thespaceplan.com/ontologies/lsi#averageEstInvestmentCost 0.0(investment cost pulled from children pages)
false file:///home/brent/Downloads/Brents-Ext_RESCAL/oldfood.ttl http://purl.org/dc/terms/title Food Growing Methods
false file:///home/brent/Downloads/Brents-Ext_RESCAL/oldfood.ttl http://www.w3.org/2000/01/rdf-schema#comment For independence and resource optimization, some or all of the astronauts' die
View PeakState
@TonyRobbins https://www.youtube.com/watch?v=PNeystiamgg I love your videos.
How do I get back to my peak state? I have been there, but every time I
propose spending thousands of dollars to get money through some plan on the Internet,
my mom does not like the idea. Somehow I can okay taking trips.
@TonyRobbins When I am in my peak state, I sprint across the neighborhood.
When I am at events in my peak state I am enthusastic and I do not mumble.
When I am in my peak state I enthusiastically apply for work or go and meet
people and do not worry about money. When I am not, everything within me seems to resist moving.
View need code to return value...
// code from:: https://www.codementor.io/codementorteam/how-to-use-json-files-in-node-js-85hndqt32
//Define JSON File
var fs = require("fs");
// get the content from the file
var contents = fs.readFileSync("countries.json");
// Define to JSON type
var jsonContent = JSON.parse(contents);
function servicetoTTL(content) { // beginning of the function
for(var exKey in jsonContent) {
View missingedges.txt
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.tinkerpop.gremlin.process.traversal.Order;
import org.apache.tinkerpop.gremlin.process.traversal.P;
import org.apache.tinkerpop.gremlin.process.traversal.Path;
import org.apache.tinkerpop.gremlin.process.traversal.Scope;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.Graph;
import org.apache.tinkerpop.gremlin.structure.T;
import org.apache.tinkerpop.gremlin.structure.Vertex;
View GremlinJenaTest5
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.tinkerpop.gremlin.process.traversal.Order;
import org.apache.tinkerpop.gremlin.process.traversal.Path;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.Graph;
import org.apache.tinkerpop.gremlin.structure.T;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.umlg.sqlg.predicate.Text;
import org.umlg.sqlg.structure.SqlgGraph;
View GremlinJenaTest4.java
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.tinkerpop.gremlin.process.traversal.Order;
import org.apache.tinkerpop.gremlin.process.traversal.Path;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__;
import org.apache.tinkerpop.gremlin.structure.Graph;
import org.apache.tinkerpop.gremlin.structure.T;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.umlg.sqlg.predicate.Text;
import org.umlg.sqlg.structure.SqlgGraph;
View GremlinJenaTest2.java
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.tinkerpop.gremlin.structure.Graph;
import org.apache.tinkerpop.gremlin.structure.T;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.umlg.sqlg.structure.SqlgGraph;
import java.util.Iterator;
import java.util.List;
public class GremlinJenaTest2 {
View gist:e883ab26f1cf6a977ea647ad5172cd63
package numberone;
import java.io.File;
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.commons.configuration.Configuration;
import org.apache.tinkerpop.gremlin.structure.Graph;
import org.umlg.sqlg.structure.SqlgGraph;
public class two {
View baseconfiguation-test
BaseConfiguration conf = new BaseConfiguration();
conf.setProperty("jdbc.url", "jdbc:postgresql://localhost:5432/yourdb");
conf.setProperty("jdbc.username", "postgres");
conf.setProperty("jdbc.password", "password");
System.out.println(conf.getString("jdbc.url"));
System.out.println(conf.getString("jdbc.username"));
System.out.println(conf.getString("jdbc.password"));
Graph g = SqlgGraph.open(conf); /// this line gives an error because Configuration rather