Topic
  • 2 replies
  • Latest Post - ‏2012-04-05T12:39:26Z by J31S_Mohammad_Khan
J31S_Mohammad_Khan
J31S_Mohammad_Khan
7 Posts

Pinned topic Error loading Business Model template

‏2012-03-18T00:42:00Z |
Hi,

Trying the load the following OWL file in WSRR_V75:

<?xml version="1.0"?>
<!-- begin_generated_IBM_copyright_prolog -->
<!-- Licensed Materials - Property of IBM -->
<!-- 5724-N72 5655-R41 -->
<!-- (c) Copyright IBM Corp. 2007 All Rights Reserved -->
<!-- US Government Users Restricted Rights - Use, duplication or -->
<!-- disclosure restricted by GSA ADP Schedule Contract with -->
<!-- IBM Corp. -->
<!-- end_generated_IBM_copyright_prolog -->
<rdf:RDF xml:base="http://www.ibm.com/helloworld"
xmlns:wsrr="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/model#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">

<owl:Ontology rdf:about="http://www.ibm.com/helloworld">
<rdfs:label>HelloWorldBusinessModelSystem</rdfs:label>
<rdfs:comment>HelloWorld Business Model System</rdfs:comment>
<owl:imports rdf:resource="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/model"/>
<owl:imports rdf:resource="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/model/object"/>
<wsrr:prefix rdf:datatype="http://www.w3.org/2001/XMLSchema#string"></wsrr:prefix>
</owl:Ontology>

<!-- Class Definitions -->

<owl:Class rdf:ID="Application">
<rdfs:label>Application</rdfs:label>
<rdfs:comment>Hello World Application template</rdfs:comment>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#referencedServices" />
<owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">0</owl:minCardinality>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#businessOwner" />
<owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>

<owl:Class rdf:ID="Service">
<rdfs:label>Service</rdfs:label>
<rdfs:comment>Hello World Service template</rdfs:comment>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#businessOwner" />
<owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#providedInterface" />
<owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#documentation" />
<owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">0</owl:minCardinality>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#serviceDependencies" />
<owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">0</owl:minCardinality>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>

<!-- Property Definitions -->

<owl:ObjectProperty rdf:ID="serviceDependencies">
<rdfs:label>serviceDependencies</rdfs:label>
<rdfs:comment>serviceDependencies</rdfs:comment>
<rdfs:domain rdf:resource="#Service" />
<rdfs:range rdf:resource="#Service" />
</owl:ObjectProperty>

<owl:DatatypeProperty rdf:ID="businessOwner">
<rdfs:label>businessOwner</rdfs:label>
<rdfs:comment>businessOwner</rdfs:comment>
<rdfs:domain>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<owl:Class rdf:about="#Application" />
<owl:Class rdf:about="#Service" />
</owl:unionOf>
</owl:Class>
</rdfs:domain>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string" />
</owl:DatatypeProperty>

<owl:ObjectProperty rdf:ID="documentation">
<rdfs:label>documentation</rdfs:label>
<rdfs:comment>documentation</rdfs:comment>
<rdfs:domain rdf:resource="#Service" />
<rdfs:range rdf:resource="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/model/object#GenericDocument" />
</owl:ObjectProperty>

<owl:ObjectProperty rdf:ID="providedInterface">
<rdfs:label>providedInterface</rdfs:label>
<rdfs:comment>providedInterface</rdfs:comment>
<rdfs:domain rdf:resource="#Service" />
<rdfs:range rdf:resource="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/model/object#WSDLDocument" />
</owl:ObjectProperty>

<owl:ObjectProperty rdf:ID="referencedServices">
<rdfs:label>referencedServices</rdfs:label>
<rdfs:comment>referencedServices</rdfs:comment>
<rdfs:domain rdf:resource="#Application" />
<rdfs:range rdf:resource="#Service" />
</owl:ObjectProperty>

</rdf:RDF>
Getting the following error:

GSR5303E: Unable to create business model system.
GSR0800E: A business model system could not be created.
GSR0300E: An error occurred when accessing the ontology repository, check the linked exception for details.
com.ibm.athene.owl.exception.OntologyProcessingException: ATN0830E: Invalid owl:Class reference: http://www.ibm.com/xmlns/prod/serviceregistry/6/1/model/object#WSDLDocument. Cannot set http://www.w3.org/2000/01/rdf-schema#range for http://www.ibm.com/helloworld#providedInterface to http://www.ibm.com/xmlns/prod/serviceregistry/6/1/model/object#WSDLDocument.

Any suggestions?

Thanks.
Updated on 2012-04-05T12:39:26Z at 2012-04-05T12:39:26Z by J31S_Mohammad_Khan
  • BPA8_Evan_Skinner
    BPA8_Evan_Skinner
    1 Post

    Re: Error loading Business Model template

    ‏2012-04-03T14:52:06Z  
    Hi,

    The uri format has changed for WSRR 7.5 and the generation of business model xml by hand is no longer encouraged for WSRR v7.5:

    http://publib.boulder.ibm.com/infocenter/sr/v7r5/index.jsp

    Please use WSRR studio and it will ensure the OWL generated is valid.
  • J31S_Mohammad_Khan
    J31S_Mohammad_Khan
    7 Posts

    Re: Error loading Business Model template

    ‏2012-04-05T12:39:26Z  
    Hi,

    The uri format has changed for WSRR 7.5 and the generation of business model xml by hand is no longer encouraged for WSRR v7.5:

    http://publib.boulder.ibm.com/infocenter/sr/v7r5/index.jsp

    Please use WSRR studio and it will ensure the OWL generated is valid.
    Thanks for the info.

    Regards.