Skip to content

Instantly share code, notes, and snippets.

View KMax's full-sized avatar

Maksim Kolchin KMax

View GitHub Profile
@KMax
KMax / plugin.xml
Last active March 23, 2020 21:51
DocumentWindow removes \n symbols from an inserted string
class UnknownPrefixAnnotator : com.intellij.lang.annotation.Annotator {
...
override fun annotate(element: PsiElement, holder: AnnotationHolder) {
...
holder
.createErrorAnnotation(element, "Uses an undeclared prefix")
.registerFix(new ResolvePrefixIntention())
...
}
...
@KMax
KMax / galitskiy.ttl
Last active August 2, 2018 20:20
Article. Topology of Business: A Knowledge Graph of Federal Tax Service. Galitskiy
<http://example.com/person/33918703-301b-5ae3-ac75-1db2944ba12c> a fibo-be-le-lp:NaturalPerson .
#
# Full Name
#
<http://example.com/person/33918703-301b-5ae3-ac75-1db2944ba12c> fibo-fnd-aap-agt:hasName "ГАЛИЦКИЙ СЕРГЕЙ НИКОЛАЕВИЧ"@ru .
<urn:datafabric:version:bc0b2f1b-9496-4c83-ac74-acb52d92ce94> a rdf:Statement ;
rdf:subject <http://example.com/person/33918703-301b-5ae3-ac75-1db2944ba12c> ;
@KMax
KMax / yandex-llc.ttl
Last active August 2, 2018 15:39
Article. Topology of Business: A Knowledge Graph of Federal Tax Service. Yandex LLC
<http://example.com/legalentity/f3adaaff-0b02-50a2-a612-7daeedf5dfe1> a fibo-fnd-org-fm:FormalOrganization .
#
# Legal Name
#
<http://example.com/legalentity/f3adaaff-0b02-50a2-a612-7daeedf5dfe1> fibo-fnd-rel-rel:hasLegalName "ООО \"ЯНДЕКС\""@ru .
<urn:uuid:a4e51f90-bc36-451f-b274-3459fd4be1d5> a rdf:Statement ;
rdf:subject <http://example.com/legalentity/f3adaaff-0b02-50a2-a612-7daeedf5dfe1> ;
rdf:predicate fibo-fnd-rel-rel:hasLegalName ;
rya_1 | 12:46:15.604 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Eagerly caching bean 'connector' to allow for resolving potential circular references
rya_1 | 12:46:15.626 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Finished creating instance of bean 'connector'
rya_1 | 12:46:15.631 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Creating shared instance of singleton bean 'conf'
rya_1 | 12:46:15.631 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Creating instance of bean 'conf'
rya_1 | 12:46:15.655 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Eagerly caching bean 'conf' to allow for resolving potential circular references
rya_1 | 12:46:15.785 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Finished creating instance of bean 'conf'
rya_1 | 12:46:15.789 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Invoking init method 'init' on bean with name '
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ex: <http://example.com/> .
<http://example.com/contract/e5b9beda-742a-45c5-a5f7-08fb9166ab31> a ex:Contract ;
ex:number “31200010721-03” ;
ex:created “2018-03-06”^^xsd:date ;
ex:customer <http://example.com/org/1057746394155> ;
ex:supplier <http://example.com/org/5087746669225> .
[{
"contractCreateDate":"2018–03–06",
"customer":{ "OGRN":"1057746394155" },
"id":"e5b9beda-742a-45c5-a5f7–08fb9166ab31",
"number":"31200010721–03",
"suppliers":[{ "ogrn":"5087746669225" }]
}]
Name Contributors Forks Stars Releases Last commit
Tarql 5 34 90 3 03.10.2017
RML-Mapper 7 26 18 6 04.05.2018
SPARQL-Generate 3 3 6 5 10.04.2018
SETLr 2 4 7 1 19.04.2018
Karma 34 138 310 25 19.04.2018
LinkedPipes 5 8 30 0 03.05.2018
@KMax
KMax / table.csv
Created June 8, 2018 09:35
non-rdf-to-rdf-converters-table-2
Name Mapping language Graphical editor Joins Custom functions
Tarql SPARQL No No Yes (Jena ARQ)
RML-Mapper R2RML with extensions Non public Yes Yes (FnO)
SPARQL-Generate SPARQL with extensions No Yes Yes (Jena ARQ)
SETLr Turtle + template language No No No
Karma No Yes No Yes (Python)
LinkedPipes No (depends on component) Yes No No
@KMax
KMax / table.csv
Last active June 8, 2018 09:35
non-rdf-to-rdf-converters-review-table-1
Name Processing mode Input formats Sources
Tarql Batch & Stream CSV Local
RML-Mapper Batch CSV & JSON & XML & CSS Local & URL
SPARQL-Generate Batch & Stream (CSV only) CSV & JSON & XML & HTML & CBOR & plain text Local & URL
SETLr Batch CSV & Excel Local
Karma Batch & Cluster (MapReduce) CSV & JSON & XML & Excel Local & URL
LinkedPipes Batch CSV & JSON & XML & Excel & HTML Local & URL
@KMax
KMax / gist:fe24c9fffa58af7e116bd254e6330b99
Created October 17, 2017 17:26
Rosstat Stats from Datafabric.cc
PREFIX fts: <https://w3id.org/datafabric.cc/ontologies/fts#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bds: <http://www.bigdata.com/rdf/search#>
PREFIX gas: <http://www.bigdata.com/rdf/gas#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX rosstat: <https://w3id.org/datafabric.cc/ontologies/rosstat#>
SELECT * {
?slice a qb:Slice ;