Questions tagged [object-property]
75 questions
1
vote
1 answer
How to satisfy Java compiler's unchecked warning for setting a SimpleObjectProperty
I have this class:
package mydate;
import java.util.Date;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
public class MyDate {
private final ObjectProperty theDate;
public MyDate(Date…

mrmsbarnes
- 13
- 2
1
vote
0 answers
Protege: What's difference between individual type and individual property assertions?
On Protege 5, we can make an assertion on a individual by two different ways.
individual1 type property1 value individual2
individual1 property1 individual2
I don't know what's the difference of them.
Plus, is there a way to put some restrictions…

user2870222
- 269
- 1
- 3
- 13
1
vote
1 answer
Dynamic observable object
What I am trying to achieve:
var obj = new Dynamic({data:"something",data2:"something else"},function(val){
console.log('"'+val+'"');
});
console.log(obj.data,obj.data2);
obj.data = "this thing here";
console.log(obj.data,obj.data2);
Console…

Isaac
- 11,409
- 5
- 33
- 45
1
vote
1 answer
OWL ObjectProperty definition in Jena with domain and range not outputted
I'm trying create an Ontology usuing Jena API and the output will be in OWL as pasted down.
import com.hp.hpl.jena.ontology.Individual;
import com.hp.hpl.jena.ontology.ObjectProperty;
import com.hp.hpl.jena.ontology.OntClass;
import…

Ali Ben Messaoud
- 11,690
- 8
- 54
- 87
0
votes
0 answers
How to model occupation in a personal ontology with Wikidata?
I am trying to describe myself in a personal ontology and to integrate semantic triples from Wikidata with Protégé. I want to be sure to follow the best practices in personal ontologies to further apply automatic reasoning in a consistent way. For…

Ludovic Bocken
- 187
- 10
0
votes
0 answers
EF Core 7.0.5 model and its object property to same table
I have a model in which 3 classes (part of the complete model)
public class City
{
public int Id { get; set; }
public string Name { get; set; }
public string District { get; set; }
}
public class Customer
{
public string? Id { get;…

Ron
- 21
- 6
0
votes
1 answer
EFCore owned model has object property mapped to foreignKey
I have a model in which 3 classes (part of the complete model)
I want to have 2 model classes to the same table(split table), when the owned class has ForeignKey to the third class.
but when I tried to configure the ForeignKey I got error:…

Ron
- 21
- 6
0
votes
1 answer
While using the Object.defineProperties in JavaScript I am getting as ' undefined' on newly defined property .How to fix it..?
const object1 = {
firstName : 'Shashidhar',
lastName : 'B M ',
rollNo : 5678,
rank : 23456
}
Object.defineProperties(object1,{
property1 : {
results : 'selected'
…

SBM
- 17
- 4
0
votes
0 answers
Filtering an object property (by domain and/or by range) when creating an ontology with Protégé
I'm using Protégé 5.5.0 for developing a material/properties ontology for testing.
I have created two 'parent' classes with corresponding subclasses:
Entity class with subclasses (Atom, Molecule, Formulation)
Property class with subclasses…

dialo1977
- 1
- 1
0
votes
1 answer
Kivy Creating Buttons Dynamically and Accessing them
So I have been trying to write a kivy program, which first uses another py file to read latin sentences from a file, then dynamically create buttons for each sentence, when one of the buttons is clicked, it should delete itself. I was sucsessfull…

Delicious_pie
- 57
- 8
0
votes
2 answers
How to iterate over known property keys in TypeScript?
This is my code:
interface Siswa {
name: string,
points: { a: number, b: number, c: number, d?: number, e?: number }
}
function find_average_points(data: Array): Array<{name: string, average: number}> {
let returned_array: Array<{name:…

riki yudha
- 35
- 1
- 7
0
votes
1 answer
SPARQL Query that retrieves individuals of a subclass that owned by another individual of a class in Protégé?
I started using Protégé as required by my job and currently learning how to use SPARQL Query for it.
I got a question in my mind as following:
Let's say that I have an ontology as this:
owl:think
Fruit
- Apples
- Bananas
…

Sarah Zida
- 15
- 4
0
votes
2 answers
How to change JavaScript object value in event
I have one complicated situation with JavaScript. I have created object. This object loads JS, CSS files dinamicly( see load function ). My problem is that I want to add onload event when object file is loaded and change some values in that…

gedO
- 548
- 2
- 7
- 24
0
votes
2 answers
How to write getter-setter methods for a private attribute in python class?
Operating System: Windows 10, 64 bit
Editor: VSCode 1.56.2
Python: 3.9.0
I have a class with year property.
When I want to private this property, it seems that get and set functions that are written using @property and @year.setter decorators…

z.ghane
- 151
- 1
- 15
0
votes
0 answers
protege compound class restrictions with some and only
I've looked around and cannot really find an answer to why the following property restriction works in one case but does not work in the other. I am trying to combine "some" and "only" object property restrictions to require that a defined class…

data.curious
- 31
- 4