# Example Queries
## Changing the Labels to rdfs:label
Go to *Configure* (top right) and choose *Language and labels*. Change the *labels for classes, properties, and qualifiers* to use property *rdfs:label*. Do the same for *labels for entities*.

## Heat Treatment Temperature & Tensile Strength & Yield Strength
[Heat Treatment Temperature & Tensile Strength & Yield Strength (Rp02) (Link may become broken)](https://dataportal.material-digital.de/sparklis/?title=42crmos4-demo&endpoint=https%3A//dataportal.material-digital.de/dataset/a77c45ad-7f54-40b0-bc94-2f7b0c09cb31/fuseki/%24&sparklis-query=%5BVId%5DReturn%28Det%28An%281%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//w3id.org/pmd/co/PMD_0000779%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.obolibrary.org/obo/BFO_0000055%22%2CFwd%2CDet%28An%2839%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//w3id.org/pmd/co/PMD_0000014%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0000059%22%2CFwd%2CDet%28An%2878%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//w3id.org/pmd/co/PMD_0060008%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/BFO_0000051%22%2CFwd%2CDet%28An%28117%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/OBI_0001931%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.obolibrary.org/obo/OBI_0001937%22%2CFwd%2CDet%28An%28157%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%2CRel%28%22http%3A//purl.obolibrary.org/obo/IAO_0000039%22%2CFwd%2CDet%28An%28156%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%29%29%29%29%29%29%29%29%29%29%2CRel%28%22http%3A//purl.obolibrary.org/obo/RO_0002234%22%2CFwd%2CDet%28An%2838%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/BFO_0000030%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0002352%22%2CFwd%2CDet%28An%28196%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//w3id.org/pmd/co/PMD_0000927%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0002234%22%2CFwd%2CDet%28An%28235%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/BFO_0000030%22%29%29%2CSome%28Rel%28%22https%3A//w3id.org/pmd/co/PMD_0000070%22%2CBwd%2CDet%28An%28274%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/BFO_0000030%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0000053%22%2CFwd%2CDet%28An%28354%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//example.org/my/default/ns%23TensileStrength%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0000059%22%2CFwd%2CDet%28An%28499%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/OBI_0001931%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.obolibrary.org/obo/OBI_0001937%22%2CFwd%2CDet%28An%28539%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%2CRel%28%22http%3A//purl.obolibrary.org/obo/IAO_0000039%22%2CFwd%2CDet%28An%28538%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%29%29%29%29%29%29%29%2CRel%28%22http%3A//purl.obolibrary.org/obo/RO_0000053%22%2CFwd%2CDet%28An%28395%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//example.org/my/default/ns%23ProofStrengthPlasticExtension%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0000059%22%2CFwd%2CDet%28An%28578%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/OBI_0001931%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.obolibrary.org/obo/OBI_0001937%22%2CFwd%2CDet%28An%28618%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%2CRel%28%22http%3A//purl.obolibrary.org/obo/IAO_0000039%22%2CFwd%2CDet%28An%28617%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29&sparklis-path=DDDRDDDDDDDDDRDDDD&entity_lexicon_select=http%3A//www.w3.org/2000/01/rdf-schema%23label&concept_lexicons_select=http%3A//www.w3.org/2000/01/rdf-schema%23label)
1. *Give me every Heat treatment* (Wärmebehandlung)
2. Multi-select **and**: *that has a realizes*, *that has an output*
3. Click on *realizes* to change the focus
    1. *a plan* &rarr; *that has a concretizes* &rarr; *a recipe* &rarr; *that has a part (bfo:\*51)* &rarr; *a scalar value specification* &rarr; 
Multi-select **and**: *that has a specified numeric value*, *that has a measurement unit label*
4. Click on *an output* to change the focus
    1. *an object* &rarr; *that is the input* &rarr; *a separation* &rarr; *that has an output* &rarr; *an object* &rarr; *that has a state* &rarr; *an object*
7. Now we need to get a characteristic twice. We can achieve this by:
    1. *that has a characteristic*
    2. change focus back to the last *an object*
    3. Multi-select **and**: *that has a characteristic* (Just one property)
8. Change focus to the first of the *has a characteristic*
    1. *a Tensile Strength* &rarr; *that has a concretizes* &rarr; *a scalar value specification* &rarr; Multi-select **and**: *that has a specified numeric value*, *that has a measurement unit label*
9. Change focus to the second of the *has a characteristic*
    1. *a Proof Strength Plastic Extension* &rarr; *that has a concretizes* &rarr; *a scalar value specification* &rarr; Multi-select **and**: *that has a specified numeric value*, *that has a measurement unit label*

Now the Heat Treatment Temperature, Tensile Strength and Yield Strength (Proof Strength Plasit Extension) should show in the nested table below.

If we wish to plot the results:
1. Switch to the *YASGUI* tab
2. Switch to the *Pivot Table* tab below
3. Change the Chart Type to *Scatter Chart*
4. Find the relevant *specified numeric values* on the left. These should be some OBI_\*. You can double-click on one of them to inspect the values, which might give a hint. (E.g. 850, 925, 1000, ... are probably values of the Heat Treatment Temperature)
5. Move them into the *Columns* or *Rows* regions (E.g. Heat Treatment Temperature into *Columns* and the strength values into *Rows*)

## Mean Planar Grain Size & Yield Strenght (Hall-Petch Relation)
[Mean Planar Grain Size & Yield Strength (Link may become broken)](https://dataportal.material-digital.de/sparklis/?title=42crmos4-demo&endpoint=https%3A//dataportal.material-digital.de/dataset/a77c45ad-7f54-40b0-bc94-2f7b0c09cb31/fuseki/%24&sparklis-query=%5BVId%5DReturn%28Det%28An%281%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/BFO_0000030%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0001001%22%2CFwd%2CDet%28An%2843%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/BFO_0000030%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0000053%22%2CFwd%2CDet%28An%28237%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//example.org/my/default/ns%23ProofStrengthPlasticExtension%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0000059%22%2CFwd%2CDet%28An%28276%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/OBI_0001931%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.obolibrary.org/obo/OBI_0001937%22%2CFwd%2CDet%28An%28316%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%2CRel%28%22http%3A//purl.obolibrary.org/obo/IAO_0000039%22%2CFwd%2CDet%28An%28315%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%29%29%29%29%29%29%29%29%29%29%2CRel%28%22http%3A//purl.obolibrary.org/obo/RO_0001001%22%2CFwd%2CDet%28An%2880%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/BFO_0000030%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0000086%22%2CFwd%2CDet%28An%28119%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//example.org/my/default/ns%23MeanPlanarGrainDiameter%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0000059%22%2CFwd%2CDet%28An%28158%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/OBI_0001931%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.obolibrary.org/obo/OBI_0001937%22%2CFwd%2CDet%28An%28198%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%2CRel%28%22http%3A//purl.obolibrary.org/obo/IAO_0000039%22%2CFwd%2CDet%28An%28197%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29&sparklis-path=DDDDDDDDD&entity_lexicon_select=http%3A//www.w3.org/2000/01/rdf-schema%23label&concept_lexicons_select=http%3A//www.w3.org/2000/01/rdf-schema%23label)
1. *Give me every object* &rarr; *that derives into...* &rarr; an object
2. We need to get object twice (it derives into the test piece and the metallography disc):
    1. Change focus back to *every object*
    2. Multi-select **and**: *that derives into* (Just one property)
3. Change focus to *something*
    1. *an object* &rarr; *that has a quality* (expand *that has a characteristic* with the small triangle to the left of it)  &rarr; *a Mean Planar Grain Diameter* &rarr; *that has a concretizes* &rarr; *a scalar value specification* &rarr; Multi-select **and*: *that has a specified numeric value*, *that has a measurement unit label*
5. Change focus to *an object* (the other object from the Muli-select)
    1. *that has a characteristic* &rarr; *a Proof Strenght Plastic Extension &rarr; *that has a concretizes* &rarr; *a scalar value specification* &rarr; Multi-select **and**: *that has a specified numeric value*, *that has a measurement unit label*

For plotting results see above.

## Heat Treatment Temperature & Metallographic Images
[Heat Treatment Temperature & Metallographic Images](https://dataportal.material-digital.de/sparklis/?title=42crmos4-demo&endpoint=https%3A//dataportal.material-digital.de/dataset/a77c45ad-7f54-40b0-bc94-2f7b0c09cb31/fuseki/%24&sparklis-query=%5BVId%5DReturn%28Det%28An%281%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//w3id.org/pmd/co/PMD_0000779%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.obolibrary.org/obo/BFO_0000055%22%2CFwd%2CDet%28An%2839%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//w3id.org/pmd/co/PMD_0000014%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0000059%22%2CFwd%2CDet%28An%2878%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//w3id.org/pmd/co/PMD_0060008%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/BFO_0000051%22%2CFwd%2CDet%28An%28117%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/OBI_0001931%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.obolibrary.org/obo/OBI_0001937%22%2CFwd%2CDet%28An%28157%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%2CRel%28%22http%3A//purl.obolibrary.org/obo/IAO_0000039%22%2CFwd%2CDet%28An%28156%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%29%29%29%29%29%29%29%29%29%29%2CRel%28%22http%3A//purl.obolibrary.org/obo/RO_0002234%22%2CFwd%2CDet%28An%2838%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/BFO_0000030%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0002352%22%2CFwd%2CDet%28An%28196%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//w3id.org/pmd/co/PMD_0000927%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0002234%22%2CFwd%2CDet%28An%28235%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/BFO_0000030%22%29%29%2CSome%28Rel%28%22https%3A//w3id.org/pmd/co/PMD_0000070%22%2CBwd%2CDet%28An%28274%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.obolibrary.org/obo/BFO_0000030%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0002233%22%2CBwd%2CDet%28An%28313%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//w3id.org/pmd/co/PMD_0000819%22%29%29%2CSome%28Rel%28%22http%3A//purl.obolibrary.org/obo/RO_0002234%22%2CFwd%2CDet%28An%28352%2CModif%28Select%2CUnordered%29%2CClass%28%22http%3A//purl.org/dc/dcmitype/Image%22%29%29%2CSome%28And%28Rel%28%22http%3A//purl.org/dc/terms/format%22%2CFwd%2CDet%28An%28393%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%2CRel%28%22http%3A//purl.org/dc/terms/title%22%2CFwd%2CDet%28An%28392%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%2CRel%28%22http%3A//purl.org/dc/terms/source%22%2CFwd%2CDet%28An%28391%2CModif%28Select%2CUnordered%29%2CThing%29%2CNone%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29%29&sparklis-path=DDDRDDDDDDDDDDDD&entity_lexicon_select=http%3A//www.w3.org/2000/01/rdf-schema%23label&concept_lexicons_select=http%3A//www.w3.org/2000/01/rdf-schema%23label)

1. Do step 1 - 4 from chapter **Heat Treatment Temperature & Tensile Strength & Yield Strength**
2. *that is the input of* &rarr; *a Light microscopy* (Lichtmikroskopie) &rarr; *that has an output* &rarr; *an image* &rarr; Multi-select **and**: *that has a format*, *that has a title*, *that has a source*

Opening links may be difficult on some browsers. If you accidentally click on the link and it becomes part of the query, click once on the white left-arrow in sparklis. Place your mouse in the top-left corner of a cell with a link, so that the link isn't highlighted. From here it should be possible to mark the link with left-click and dragging the mouse.