Skip to content

Instantly share code, notes, and snippets.

View ikwattro's full-sized avatar

Christophe Willemsen ikwattro

View GitHub Profile
@ikwattro
ikwattro / Car Manufacturers.json
Created January 30, 2024 20:33 — forked from pcgeek86/Car Manufacturers.json
Plain-text list of major car manufacturers
[
"Abarth",
"Alfa Romeo",
"Aston Martin",
"Audi",
"Bentley",
"BMW",
"Bugatti",
"Cadillac",
"Chevrolet",
@ikwattro
ikwattro / README.md
Created March 23, 2022 16:16 — forked from michael-simons/README.md
Filtering contents of fileB.json with information from fileA.json
@ikwattro
ikwattro / schema-generator.py
Created February 24, 2021 20:34 — forked from FxIII/schema-generator.py
Hume Schema Generator
import os
from neo4j import GraphDatabase
import json
import random
import logging
import uuid
# default parameters
URI = "bolt://localhost:7687"
@ikwattro
ikwattro / App.java
Created April 13, 2020 13:33 — forked from thomasdarimont/App.java
Simple example for configuring Spring Security's RoleHierarchy via YAML in Spring Boot, compatible with Java 7
package demo;
import static java.util.Arrays.asList;
import static org.springframework.security.core.authority.AuthorityUtils.createAuthorityList;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
CREATE (n:HumeAction)
SET n.id = 'hume_action_chart'
SET n.data = '{
  "label": "Show Demand",
  "returnType": "CHART",
  "scope": "LOCAL",
  "id": "hume_action_chart",
  "action": {
 "statement": "MATCH (n:Product) WHERE id(n) = $id 
CREATE (n:HumeAction)
SET n.id = 'hume_action_person_eco'
SET n.data = '{
  "label": "Show Ecosystem of Person",
  "returnType": "GRAPH",
  "scope": "GLOBAL",
  "id": "hume_action_find_person_eco",
  "inputParameters": [
 {
CREATE (n:HumeAction)
SET n.id = 'hume_action_ins'
SET n.data = '{
  "label": "Ship Product to",
  "returnType": "GRAPH",
  "scope": "LOCAL",
  "id": "hume_action_ins",
  "inputParameters": [
 {
@ikwattro
ikwattro / annotate.md
Last active June 25, 2019 07:55
API hackathon

## Hackathon API docs

In the same idea as dbpedia spotlight, the Hume API will provide an endpoint to let people run the entity linking process of a text and retrieve associated results.

### Annotate text

POST /entitylinking/annotate

Request body :

@ikwattro
ikwattro / result.json
Last active May 10, 2019 17:21
dbpedia result
{
"@text": "SPS-ALPHA incorporates a number of critical new technologies, including: (1) WPT using a retrodirective RF phased array with high-efficiency solid-state amplifiers; (2) high-efficiency multi-bandgap PV solar cells, employed in a concentrator PV (CPV) architecture with integrated thermal management; (3) lightweight structural components, applied in various systems \/ subsystems; (4) autonomous robotics in a highly structured environment; and, (5) a high-degree of autonomy among individual modules. However, no 'breakthroughs' are required, and the key innovation is at the architecture level.",
"@confidence": "0.35",
"@support": "0",
"@types": "",
"@sparql": "",
"@policy": "whitelist",
"Resources": [
{
"@URI": "http:\/\/dbpedia.org\/resource\/World_Poker_Tour",
name phone
john 12345
john 45678
laura 12345
laura 7890