title: how to put integer "range" in OWL literal value?
body: <p>Let's say that I have metal material in db that have property Yield strength which can go from 300 to 500 MPa. How can i enter that as literal value.</p>
  
  <p>Should I put 2 properties like <code>YieldStrengthMin</code> and <code>YieldStrengthMax</code>, or it can be done in single entry and formatted something like 300 - 500. I know that I can put it like that as a string type, but what I need is that when I SPARQL my db, I should make query that will find all materials that have let's say <code>YieldStrength &gt; 350</code>. If it's in that interval even partial it should be a valid result.</p>
  
  <p>OK, another example to clarify</p>
  
  <p>I will have db of materials and each type of material have many properties. Let's say <code>prop:hasMeltingTemperature</code>.</p>
  
  <pre><code>material:ZA-12 prop:hasMeltingTemperature    "380 - 430".
  
  material:Zn    prop:hasMeltingTemperature    "420".
  </code></pre>
  
  <p>Some of them (clean materials) will have one melting temp, and temp of alloys will vary depending of percent of some components.</p>
  
  <p>My application will have to get all materials from db that have let's say melting temperature > 400. So in this case it should get both of them.</p>
  
  <p>And if I query that i need all materials that have melting temp &lt; 425 it should take both of them too. If query is &lt; 400, then only first material.</p>
  
  <p>Anyway, my question is:</p>
  
  <p>Should i make properties like this:</p>
  
  <pre><code>material:ZA-12 prop:hasMeltingTemperature_MIN "380".
  
  material:ZA-12 prop:hasMeltingTemperature_MAX "430".
  
  material:Zn    prop:hasMeltingTemperature     "420".
  </code></pre>
  
  <p>then when I query I have to detect ">" then compare it to "MIN" temp and "solo" temp, and if it's "&lt;" then compare it to "MAX" temp and "solo" temp.</p>
  
  <p>In this case I have to first detect does material have only "one" or "min-max" temp or "none" temp property.</p>
  
  <p>OR</p>
  
  <p>I can do it something like in the first example and have only one property like:</p>
  
  <pre><code>material:ZA-12 prop:hasMeltingTemperature "380 - 430".
  
  material:Zn    prop:hasMeltingTemperature "420" .
  </code></pre>
  
  <p>and make some kind of sparql query that could understand "intervals" and compare them?</p>
  
  <p>That's what I was wondering because there are many properties of materials, and many materials, and some of them have "min max" value, some "solo" value, and some don't have that property at all, but have another one with the same problem... </p>
  
  <p>My application will be in php so i will have to generate sparql query in php, so that's why i was looking for some "universal" type of query (checking only one property)..</p>
  
  <p>So my problem is more how to efficiently sparql query it, what's better choice of that 2 for storing data, and how to query it'</p>