« Car12 » : différence entre les versions

De Semantic MediaWiki - Sandbox

Aucun résumé des modifications
Balise : Éditeur de wikicode 2017
Aucun résumé des modifications
Balise : Éditeur de wikicode 2017
 
Ligne 40 : Ligne 40 :




Another attempt
the solution requires a different modelling: each property value needs to be stored in the
pages and then the ask has to include a column per each property value.


{{#ask:
{{#ask:
Ligne 48 : Ligne 49 :
|?has 3 wheels
|?has 3 wheels
|?has 4 wheels
|?has 4 wheels
|?is electric
|?is electric
|?is diesel
|?is diesel
}}
}}

Dernière version du 11 février 2021 à 12:29

Here are listed all the cars that we have

 Type of gear isNumber of wheels is
Car1Automatic3
Car2Manual4


I would like to have the following result:

Cars Manual Automatic 3 wheels 4 wheels
Car1 X X
Car2 X X

However unfortunately I am able to get automatically only the following

 ManualAutomatic3 wheels4 wheels
Car1AutomaticAutomatic33
Car2ManualManual44


the solution requires a different modelling: each property value needs to be stored in the pages and then the ask has to include a column per each property value.

 Has manual gearHas automatic gearHas 3 wheelsHas 4 wheelsIs electricIs diesel
Car1YYY
Car2YYY
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.