instantiatinga property with range rdfs:Resource (in tbc)

9 views
Skip to first unread message

Bohms, H.M. (Michel)

unread,
Aug 30, 2022, 3:29:34 AMAug 30
to topbrai...@googlegroups.com, Jonker R. (Rolf), Bart Bink

Hi Holger

 

How can I instantiate a property with range rdfs:Resource (constrained to a xsd:string) in TBC as a string?

 

Ex:

 

 

I cannot fill in a string here only an instance….

 

Thx Michel

 

Ps owl:

 

nen2660:Requirement

  rdf:type rdfs:Class ;

  rdf:type owl:Class ;

  rdfs:seeAlso nen2660-term:Requirement ;

  rdfs:subClassOf nen2660:InformationObject ;

  rdfs:subClassOf [

      rdf:type owl:Restriction ;

      owl:onClass xsd:string ;

      owl:onProperty rdf:value ;

      owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;

    ] ;

  skos:definition "A rule that should hold for something, defined via its attributes or relations" ;

  skos:prefLabel "Requirement"@en ;

.

 

 

 

Michel Böhms
Data Scientist

Unit Buildings, Infrastructure & Maritime


Mobile +31 630381220
E-mail  
michel...@tno.nl

Location

 

This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages.

 

 

 

Holger Knublauch

unread,
Aug 30, 2022, 3:32:10 AMAug 30
to topbrai...@googlegroups.com, Jonker R. (Rolf), Bart Bink
The OWL snippet below only declares a qualified cardinality constraint. That means that *some* of the values must be strings, but not all. For that you need to use owl:allValuesFrom.

Holger


On 30 Aug 2022, at 9:29 am, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:

Hi Holger
 
How can I instantiate a property with range rdfs:Resource (constrained to a xsd:string) in TBC as a string?
 
Ex:
 
<image001.png>
 
I cannot fill in a string here only an instance….
 
Thx Michel
 
Ps owl:
 
nen2660:Requirement
  rdf:type rdfs:Class ;
  rdf:type owl:Class ;
  rdfs:seeAlso nen2660-term:Requirement ;
  rdfs:subClassOf nen2660:InformationObject ;
  rdfs:subClassOf [
      rdf:type owl:Restriction ;
      owl:onClass xsd:string ;
      owl:onProperty rdf:value ;
      owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
    ] ;
  skos:definition "A rule that should hold for something, defined via its attributes or relations" ;
  skos:prefLabel "Requirement"@en ;
.
 
 
 
Michel Böhms
Data Scientist
Unit Buildings, Infrastructure & Maritime
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages.
 
<image003.png>
 
 

-- 
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/36052d23b0ae426ebc28132385ebf1c1%40tno.nl.

Bohms, H.M. (Michel)

unread,
Aug 30, 2022, 5:53:27 AMAug 30
to topbrai...@googlegroups.com, Jonker R. (Rolf), Bart Bink
That is fine but....
How can we instantiate a lexical value like a string in the instance creator in tbc?
It now only allows for an uri it seems?
Thx michel

Op 30 aug. 2022 09:32 schreef Holger Knublauch <hol...@topquadrant.com>:

Holger Knublauch

unread,
Aug 30, 2022, 9:16:54 AMAug 30
to topbrai...@googlegroups.com, Jonker R. (Rolf), Bart Bink
That's what I tried to explain. The form editor of TBC cannot really know what values you want to enter and assumes the most generic one (URIs). If you don't want to add an allValuesFrom, you can use the source code editor to add strings.

Holger


Bohms, H.M. (Michel)

unread,
Aug 30, 2022, 9:38:45 AMAug 30
to topbrai...@googlegroups.com, Jonker R. (Rolf), Bart Bink
Ok
I would think that most generic would mean "uri OR literal" so that in case of an rdf Resource range you could fill in both (kind of rdf resource input widget...).

But ok we can you the code editor too as alternative..

Thx michel


Op 30 aug. 2022 15:17 schreef Holger Knublauch <hol...@topquadrant.com>:
Reply all
Reply to author
Forward
0 new messages