Giter VIP home page Giter VIP logo

Comments (7)

kdev avatar kdev commented on June 25, 2024 2

I just found something that would be an interesting change to this idea.
There is a query language for JSON that is perfect for our usecase and should be easy to implement.
I understand that it's not "made" by us but would provide a feature till we do.

from lssm-v.4.

jxn-30 avatar jxn-30 commented on June 25, 2024

Version V.0.0.1 merged into master with #53

from lssm-v.4.

RagingLightning avatar RagingLightning commented on June 25, 2024

I've been looking into the examples given and found one thing that is a bit weird:

sum of personal in all buildings that have more than 3 vehicles
sum((buildings WHERE len(vehicles WHERE .building_id = ..id) > 3).personal_count)

in this example, personal_count strikes me as odd.
I know that much of the LSSM is german (since the game is german), but as this is a query language, where everything is in english, I do believe that using the english personnel_count would be better suited. Especially since personal refers to something completely different in english

from lssm-v.4.

JRH-1997 avatar JRH-1997 commented on June 25, 2024

I've been looking into the examples given and found one thing that is a bit weird:

sum of personal in all buildings that have more than 3 vehicles
sum((buildings WHERE len(vehicles WHERE .building_id = ..id) > 3).personal_count)

in this example, personal_count strikes me as odd.
I know that much of the LSSM is german (since the game is german), but as this is a query language, where everything is in english, I do believe that using the english personnel_count would be better suited. Especially since personal refers to something completely different in english

Thats just a name used in the API of the game. And LSSMAQL is just something to use the APi of the game. So they need to use the exact names of that.

from lssm-v.4.

jxn-30 avatar jxn-30 commented on June 25, 2024

The attributes are the same as used in the APIs:
https://www.missionchief.com/api/buildings
https://www.missionchief.com/api/vehicles
https://www.missionchief.com/api/allianceinfo
https://www.missionchief.com/api/credits
https://www.missionchief.com/einsaetze.json

This is because Sebastian, the original founder of the game, used some "denglish" (mixing german and english) terms internally and the new developer team also does this now and then.

As the idea of LSSMAQL was/is to provide a Language to query these APIs, the exact same attribute names are required.
There are also plans to provide a GUI for LSSMAQL but unfortunately the project is on hold currently.

from lssm-v.4.

Cr4zyc4k3 avatar Cr4zyc4k3 commented on June 25, 2024

Possible alternatives:

from lssm-v.4.

Cr4zyc4k3 avatar Cr4zyc4k3 commented on June 25, 2024

after fiddling around with JSONata and GROQ in tend to favorite JSONata since a more complete feature set.
Eg. string/number conversion is not possible with groq.

from lssm-v.4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.