Search Mailing List Archives
[protege-owl] Query: representing network IP address in OWL-DL, in particular subnet ranges
nick.drummond at cs.manchester.ac.uk
Wed Aug 13 08:35:52 PDT 2008
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...
If you don't want to be able to reason about this - stick with the numerics.
But how do you know 19216811 is not 184.108.40.206? or 220.127.116.11?Not sure how
big the xsd:integer is but padding with the appropriate 0s might be
On Wed, Aug 13, 2008 at 2:39 PM, william fitzgerald <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 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
> hasSubnet might have a range of Integer. Example 24 or 1921681024 to
> represent 192.168.1.0/24
> or maybe it could be a String for example "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 network
> > IP addresses in OWL-DL.
> > It appears representing network ranges/subnets seems to be a little
> > How I currently handle/hacked a crude solution is to have a class called
> > Within that Class, individuals for example ip1, ip2 etc have data-type
> > properties to integers.
> > ip1 hasIPStartRange 192.168.1.0
> > ip1 hasIPEndRange 192.168.1.255
> > Thus ip1 represents the subnet 192.168.1.0/24
> > ip2 could be for example:
> > ip2 hasStartIPRange 10.37.1.1
> > ip2 hasEndIPRange 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
> > I was also thinking of breaking the IP address down into 4 individuals
> > (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 collection
> > 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 "18.104.22.168" for example?
> > I would be delight to hear how people usually handle ranges of "things"
> > (term used loosely here) in terms of OWL-DL. Is this a common modelling
> > problem?
> > Additonal info:I create and use ontologies from within the 3.4 Protege
> > 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 |
> | 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
> Instructions for unsubscribing:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the protege-owl