Sabbiu Shah
Sabbiu Shah

Reputation: 1709

Can I create datatype property for particular class in OWL?

Something like.. Suppose I have a class named Instructor.

Now, I need to have a datatypeProperties linked only to instructor like salary, instructor_name..

What is the RDF structure for this? Is such thing possible?

Upvotes: 1

Views: 173

Answers (1)

Sabbiu Shah
Sabbiu Shah

Reputation: 1709

Adding rdfs:domain works!

<!-- Define the salary property -->
<owl:DatatypeProperty rdf:about="http://www.example.com/sample#salary">
    <rdfs:domain rdf:resource="http://www.example.com/sample#instructor" />
</owl:DatatypeProperty>

Upvotes: 1

Related Questions