Questions tagged [object-property]

75 questions
2
votes
1 answer

OWL: How to get inheritance of property relations between two classes from those of superclasses?

Let's say we have two classes named People and Disease. These classes are related by the Object Property has. :People :has :Disease People has subclass (or individual) John, and Disease has subclass (or individual) Cancer. :John a :People :Cancer…
MJ Park
  • 303
  • 1
  • 10
2
votes
0 answers

How to get the "list of active timers" of a WindowTimer implemented object

The W3C specification states "Each object that implements the WindowTimers interface has a list of active timers." But I have never seen anywhere how to get to that list and inspect it Does that imply that it's implementation specific and not meant…
user1938578
  • 393
  • 5
  • 20
2
votes
2 answers

If I Iterate Over an Objects Properties using JQuery $.each() is there an index?

a = {b:'bb',c:'cc',d:'dd'}; $.each(a, function(index){ // here 'index' is a string variable containing the property name, ie 'b', 'c' or 'd'. } I want the integer index of the property - is this possible without using an independent count…
user1561108
  • 2,666
  • 9
  • 44
  • 69
2
votes
1 answer

List object properties from a instance in Jena

How can I list all Object Properties associated to a instance in Jena? For example: A Person has an Object Property called "hasVehicle" which is associated with a class Vehicle
Leandro
  • 33
  • 1
  • 4
1
vote
0 answers

Negation of an Object Property

I have an Object Property IsMarriedWith, I want to create a Class "Single" to get non married individuals, I defined its "Equivalent To" like this: IsMarriedWith max 0 Thing And i also tried this: not (IsMarriedWith min 1 Thing) But none of those…
user4374239
  • 93
  • 2
  • 11
1
vote
1 answer

Blank nodes generating when adding object properties to the ontology

I have an ontology in Protege. When I add an object property like X worksFor Y, and then load the rdf to graphdb, it generates 3 triples with subject = blank node, property = owl:someValuesFrom, owl:onProperty, owl:rdfType, and then it adds a triple…
Ric
  • 65
  • 9
1
vote
1 answer

Kivy & pyvisa - How to make an ObjectProperty to None after a GPIB connection?

I'm facing a real blocking issue with kivy and pyvisa and I'm really lost about how to find a solution to this. In the code below, I have an ObjectProperty called 'device' who's initialized to None. I want to use it to start a GPIB connection. When…
gdelbarre
  • 13
  • 2
1
vote
1 answer

'kivy.properties.ObjectProperty' object has no attribute 'text'

I am new to kivy module so i am trying to understand it. The goal of this code is to just create a text file with some information in it. This is my python file: from kivy.lang import Builder from kivy.properties import ObjectProperty from kivy.app…
1
vote
0 answers

OWL - Multiple restriction to object property

Consider this example of knowledge representation 1. Using OWL, is there a way to say that only the "derived from" property which connects "Lolita (Book)" and "Lolita (1962)" is correct, because "Vladimir Nabokov" is connected to both of them,…
1
vote
2 answers

How to compare Object property name to a string?

Is there a way to compare if the property in an Object is equal to a string? Here is a sample Objet named Person public class Person { private String firstName; private String lastName; public Person(String firstName, String…
ace
  • 6,775
  • 7
  • 38
  • 47
1
vote
1 answer

Is it possible to bind a TextProperty to an ObjectProperty's String attribute if it is not a String property?

How can I bind ObjectProperty's attribute (that itself is not a property) to some other property like a TextField's text property without using a ChangeListener? More specifically: I would like to make a TextField change an ObjectProperty's…
Julian Broudy
  • 320
  • 3
  • 15
1
vote
0 answers

How to retrieve object type properties from RDF using SPARQL queries?

I have created a simple ontology using Protege and now I want to retrieve data from the RDF file of that ontology. I have an object property like below:
jenyK
  • 71
  • 6
1
vote
1 answer

OWL object property bidirectionel

I need to say that an object property is bidirectionnel. I know that we can use the inverseOf attribute to link 2 property but is it possible to say that the inverseOf an objectProperty is himself?
j_schneider
  • 65
  • 1
  • 10
1
vote
0 answers

Kivy: when to use ObjectProperty

I have a button (button_child_A) which calls a def with on_press. In this def, I want to change the text of 3 labels: - `label_child_A` is in the same class as the `button_child_A` - `label_parent` is in the parent class of `button_child_A` -…
MagTun
  • 5,619
  • 5
  • 63
  • 104
1
vote
1 answer

Kivy: how to update a label when a button is clicked

I use a button to retrieve the paths of some folders selected with the filechooser. When the button is clicked I would like to update the text of the label so that it dispays the selected paths. In my Kv: Button: text:'OK' on_press:…
MagTun
  • 5,619
  • 5
  • 63
  • 104