Skip to content

Instantly share code, notes, and snippets.

View yawnston's full-sized avatar
🕴️
oh hi mark

Daniel Crha yawnston

🕴️
oh hi mark
View GitHub Profile
@yawnston
yawnston / querycat-lang-proposal.md
Last active November 9, 2022 07:18
First proposal for the querycat query language (inspired by SPARQL) for querying categorical data

Query Example

For each customer, return their name and surname, as well as the list of all products this customer bought, which have a maximum price of 150 EUR.

SELECT {
  ?customer cheapItems _:cheapItems ;
            name       ?name        ;
            surname    ?surname     .
@yawnston
yawnston / docker-compose.yaml
Created December 30, 2022 14:32
My personal docker-compose file for a setup with MM-quecat and MM-evocat.
version: "2.4"
networks:
mmcat:
driver: bridge
name: mmcat
volumes:
mmcat-postgres:
mmcat-postgres-data:
mmcat-mongo-data:
@yawnston
yawnston / journal_feedback.md
Created February 21, 2023 07:44
Feedback pro Elsevier JSS clanek o MMQL

Figure 4

  • Nemyslim si ze dava smysl opakovat FROM clause, t.j. mit vice FROM klauzuli. My ji pouzivame k tomu, abychom vybrali schema ze ktereho dotazovat.

Figure 5

  • WHERE neni v MMQL optional, vzdy tam musi byt. Prijde mi ze obrazek naznacuje, ze by to tam byt nemuselo (pokud mu spravne rozumim).

Figure 6

  • BIND momentalne nepodporujeme, teoreticky by to slo, ale otevreli bychom se tomu, ze se uvnitr toho objevi nejaka velka agregace napric vice databazemi, a bylo by podle me slozite definovat, jak se to ma prekladat. Kazdopadne na urovni jazyka tomu nic nebrani, je to spis implementacni slozitost.
  • V obrazku chybi VALUES
  • Nepodporujeme GRAPH, protoze to nedava v kontextu MMQL smysl

Figure 7

  • Nepodporujeme NOT EXISTS ve verzi MMQL kterou jsem navrhoval v diplomce - dle me uvahy jde NOT EXISTS ekvivalentne vyjadrit pomoci podporovaneho MINUS v kombinaci s filtrovanim
@yawnston
yawnston / query.mmql
Created March 8, 2023 21:31
JSS query proposal
# Notation -> is used as a simplification in place of a single morphism, for example 1 or -1. This is for simplification since I don't know the exact schema.
# Similarly ->> means a traversal like 1/2 or 1/-2 or similar, basically just a compound morphism traversal.
SELECT {
?result -> ?address ;
# Cypher-like aggregation - set of neighboring variables is the aggregation set (in this case streetName adn city)
-> COUNT(?sameAddressOrder) AS ?orderCount .
?address -> ?streetNumber ;
-> ?city .