math - Encoding mathematical properties in RDF -
i have been trying find solution adding relationships, such x has unit a < 20 existing ontology, but, not find solution far.
an existing knowledge graph - rdf
- has many concepts , relationships. in attempt improve accuracy of inferences, trying add key properties few of concepts.
example:
concept x causes concept y. and, know concept y has property abc < 30 always.
please suggest on how add kind of relationships few concepts in knowledge graph - rdf
as mentioned in answer functions manipulate rdf collections in sparql, can mathematics in sparql, query language rdf. encoding arbitrary mathematical formulas (which title suggests), might interested in
wenzel, ken, , heiner reinhardt. "mathematical computations linked data applications openmath." joint proceedings of 24th workshop on openmath , 7th workshop on mathematical user interfaces (mathui). 2012.
all said, you're describing here (that value of of property have value less number), expressible in owl. particular situation was:
concept x causes concept y. and, know concept y has property abc < 30 always.
i'm not sure mean concept causing another, can every instance of y has values less 30 property abc. that's pretty straightforward. it's axiom (in manchester syntax)
y subclassof abc xsd:integer[< 30]
and in dl syntax:
y ⊑ ∀abc.xsd:integer[< 30]
in protégé looks like:
and in rdf representation of owl ontology (in turtle , rdf/xml):
@prefix : <https://stackoverflow.com/q/24134785/1281433/facets#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix xsd: <http://www.w3.org/2001/xmlschema#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . :abc owl:datatypeproperty . <https://stackoverflow.com/q/24134785/1281433/facets> owl:ontology . :y owl:class ; rdfs:subclassof [ owl:restriction ; owl:allvaluesfrom [ rdfs:datatype ; owl:ondatatype xsd:integer ; owl:withrestrictions ( [ xsd:maxexclusive 30 ] ) ] ; owl:onproperty :abc ] .
<rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="https://stackoverflow.com/q/24134785/1281433/facets#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/xmlschema#"> <owl:ontology rdf:about="https://stackoverflow.com/q/24134785/1281433/facets"/> <owl:class rdf:about="https://stackoverflow.com/q/24134785/1281433/facets#y"> <rdfs:subclassof> <owl:restriction> <owl:onproperty> <owl:datatypeproperty rdf:about="https://stackoverflow.com/q/24134785/1281433/facets#abc"/> </owl:onproperty> <owl:allvaluesfrom> <rdfs:datatype> <owl:ondatatype rdf:resource="http://www.w3.org/2001/xmlschema#integer"/> <owl:withrestrictions rdf:parsetype="collection"> <rdf:description> <xsd:maxexclusive rdf:datatype="http://www.w3.org/2001/xmlschema#integer" >30</xsd:maxexclusive> </rdf:description> </owl:withrestrictions> </rdfs:datatype> </owl:allvaluesfrom> </owl:restriction> </rdfs:subclassof> </owl:class> </rdf:rdf>
Comments
Post a Comment