Coder Social home page Coder Social logo

Comments (4)

kghbln avatar kghbln commented on June 16, 2024 4

For your example you do not need a compound query since you are not trying to join the results of two different queries. #ask should do here.

I believe you can do it like in the second query down here. OR should work for the #compound_query parser function, too. If not this would be a feature request.

{{#compound_query:
 [[Category:Category0]]
 ;?Has coordinates
 ;limit=5000
 ;icon=Blue_marker.png
 |
 [[Category:Category1]]
 OR
 [[Category:Category2]]
 ;?Has coordinates
 ;limit=5000
 ;icon=Yellow_marker.png
 |format=leaflet 
 |zoom=2
 |markercluster=on
 |clustermaxzoom=7
 |clusterminsize=4
 |fullscreen=1
 |height=400px
 |limit=5000
}}

from semanticcompoundqueries.

jamesmontalvo3 avatar jamesmontalvo3 commented on June 16, 2024 3

Concur, compound queries not required. You can join two categories with a regular ask:

{{#ask: [[Category:Cat1 || Cat2]] 
| format = ul
}}

from semanticcompoundqueries.

kghbln avatar kghbln commented on June 16, 2024 3

Right, || works also for categories however you cannot mix properties and categories. See the docu on unions of results.

from semanticcompoundqueries.

akuckartz avatar akuckartz commented on June 16, 2024 2

"Categoty", not "Category" ?!

from semanticcompoundqueries.

Related Issues (16)

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.