Search Mailing List Archives
[protege-owl] Query: representing network IP address in OWL-DL, in particular subnet ranges
wfitzgerald at tssg.org
Wed Aug 13 08:43:32 PDT 2008
Nick Drummond wrote:
> Not sure this is a "standard" modelling question (if there is such a thing).
> If you need to be able to reason about the relation of the masks to the
> addresses I suppose you might need to split the thing up into its
> You could use a variant of owl lists:
> hasIPAddressSegment some ((hasValue value 192) and (hasNextSegment
> some ((hasValue value 168) and (hasNextSegment...
I have just printed your paper:"Putting OWL in Order:
Patterns for Sequences in OWL"
> If you don't want to be able to reason about this - stick with the numerics.
> But how do you know 19216811 is not 22.214.171.124 <http://126.96.36.199>? or
> 188.8.131.52 <http://184.108.40.206>?
I could pad out the lower than 100 numbers with a 0 as you suggest: 192
168 1 1 to be 192 168 001 001 or more appropriately 192168001001
Back to the drawing board :-(
Thanks for your opinion.
> Not sure how big the xsd:integer is but padding with the appropriate 0s
> might be sensible.
> On Wed, Aug 13, 2008 at 2:39 PM, william fitzgerald
> <wfitzgerald at tssg.org <mailto:wfitzgerald at tssg.org>> wrote:
> On thinking about the problem some more, another possible modeling
> solution could be as follows.
> ip1 hasIPaddressValue 19216811
> ip1 hasNetMask 2552552550
> ip1 hasSubnet 24
> Since data property hasIPaddressValue it is an integer value then
> 192.168.1.1 <http://192.168.1.1> is represented as 19216811.
> Note, I missed typed this in the examples previously by including "."
> instinctively when writing the ip address of individuals along the
> properties hasIPStartRange and hasIPEndRange.
> hasNetMask could be an integer to represent a class C network of
> 255.255.255.0 <http://255.255.255.0>
> hasSubnet might have a range of Integer. Example 24 or 1921681024 to
> represent 192.168.1.0/24 <http://192.168.1.0/24>
> or maybe it could be a String for example "192.168.1.0/24
> <http://192.168.1.0/24>", "Internal
> LAN", "WiFi Area" etc.
> But this method seems to be introducing additional complexity. Maybe
> this is how it must be!
> Once again, any input to this modeling question is welcomed.
> william fitzgerald wrote:
> > Dear OWL Experts,
> > [problem domain: ranges of "things" (possibly in a certain order)]
> > I am wondering if anyone may have an opinion of how to represent
> > IP addresses in OWL-DL.
> > It appears representing network ranges/subnets seems to be a
> little tricky.
> > How I currently handle/hacked a crude solution is to have a class
> called IP.
> > Within that Class, individuals for example ip1, ip2 etc have
> > properties to integers.
> > ip1 hasIPStartRange 192.168.1.0 <http://192.168.1.0>
> > ip1 hasIPEndRange 192.168.1.255 <http://192.168.1.255>
> > Thus ip1 represents the subnet 192.168.1.0/24 <http://192.168.1.0/24>
> > ip2 could be for example:
> > ip2 hasStartIPRange 10.37.1.1 <http://10.37.1.1>
> > ip2 hasEndIPRange 10.37.1.1 <http://10.37.1.1>
> > Thus representing one single ip address.
> > External individuals of other classes for example Router or
> Server could
> > then have a object property (hasIPaddress) to individuals of the
> IP class.
> > I was also thinking of breaking the IP address down into 4
> > (segments) who each have a single data-type property to an
> integer. For
> > example
> > ip1 hasIPSegment 192
> > ip2 hasIPSegment 168
> > ip3 hasIPSegment 1
> > ip4 hasIPSegment 1
> > Their conjunction is to represent IP address of 192.168.1.1
> > Then setting a Server individual (serv1) for example to the
> > of IP segments that are required:
> > serv1 hasIPAddressSegment ip1
> > serv1 hasIPAddressSegment ip2
> > serv1 hasIPAddressSegment ip3
> > serv1 hasIPAddressSegment ip4
> > However, how does one "order/sequence" within an ontology so that it
> > does not become "220.127.116.11 <http://18.104.22.168>" for example?
> > I would be delight to hear how people usually handle ranges of
> > (term used loosely here) in terms of OWL-DL. Is this a common
> > problem?
> > Additonal info:I create and use ontologies from within the 3.4
> > GUI environment. I have a copy of the latest August build installed.
> > Pellet and SWRL are used.
> > regards,
> > Will.
> | William M. Fitzgerald (MSc, BSc) |
> |Researcher | PhD Student |
> |Telecommunications Software & Systems Group,| Computer Science Dept., |
> |ArcLabs Research and Innovation Centre, | University College Cork,|
> |Waterford Institute of Technology, | Cork. |
> |WIT West Campus, | |
> |Carriganore, | |
> |Waterford. | |
> |Office Ph: +353 51 302937 | |
> |Mobile Ph: +353 87 9527083 | |
> |Web: www.williamfitzgerald.org <http://www.williamfitzgerald.org>
> | www.linkedin.com/in/williamfitzgerald
> | www.ryze.com/go/wfitzgerald
> | www.tssg.org/people/wfitzgerald/
> protege-owl mailing list
> protege-owl at lists.stanford.edu <mailto:protege-owl at lists.stanford.edu>
> Instructions for unsubscribing:
| William M. Fitzgerald (MSc, BSc) |
|Researcher | PhD Student |
|Telecommunications Software & Systems Group,| Computer Science Dept., |
|ArcLabs Research and Innovation Centre, | University College Cork,|
|Waterford Institute of Technology, | Cork. |
|WIT West Campus, | |
|Carriganore, | |
|Waterford. | |
|Office Ph: +353 51 302937 | |
|Mobile Ph: +353 87 9527083 | |
|Web: www.williamfitzgerald.org |
| www.linkedin.com/in/williamfitzgerald |
| www.ryze.com/go/wfitzgerald |
| www.tssg.org/people/wfitzgerald/ |
More information about the protege-owl