View unanswered posts | View active topics It is currently Wed Sep 26, 2018 5:06 am



Reply to topic  [ 28 posts ]  Go to page Previous  1, 2, 3
 p7tpl file generation 
Author Message

Joined: Sun Jan 22, 2012 9:14 pm
Posts: 189
**deleted, see reply further on***


Thu Dec 06, 2012 2:43 pm
Profile

Joined: Mon Feb 27, 2012 11:01 pm
Posts: 282
Location: Moscow, Russia
It will take some time for me to do a verification by software - after all the decisions I've sent new specs to programmers and now I'm waiting for new version.


Thu Dec 06, 2012 3:15 pm
Profile WWW

Joined: Mon Feb 27, 2012 11:01 pm
Posts: 282
Location: Moscow, Russia
Sorry, Onno, no role info in the sample.


Thu Dec 06, 2012 3:34 pm
Profile WWW

Joined: Sun Jan 22, 2012 9:14 pm
Posts: 189
I made a lot of mistakes. Took a too old xml.

Namespaces simplified. Also, a purl.org namespace for the RDL.
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE rdf:RDF [
   <!ENTITY owl "http://www.w3.org/2002/07/owl#" >
   <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
   <!ENTITY owl2xml "http://www.w3.org/2006/12/owl2-xml#" >
   <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
   <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
   
   <!ENTITY p7tm "http://standards.iso.org/iso/15926/tm#" >
   <!ENTITY p7tpl "http://standards.iso.org/iso/15926/tpl#" >
   <!ENTITY dm "http://standards.iso.org/iso/15926/dm#" >
   <!ENTITY meta "http://standards.iso.org/iso/15926/meta#" >
   <!ENTITY rdl "http://rdl.example.org/sampleReferenceData#" >
]>
<rdf:RDF xmlns="http://15926.org/templates-test/templates#"
   xml:base="http://15926.org/templates-test/templates"
   xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
   xmlns:rdl="http://rdl.example.org/sampleReferenceData##"
   xmlns:p7tm="http://standards.iso.org/iso/15926/tm#"
   xmlns:p7tpl="http://standards.iso.org/iso/15926/tpl#"
   xmlns:dm="http://standards.iso.org/iso/15926/dm#"
   xmlns:meta="http://standards.iso.org/iso/15926/meta#"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:owl="http://www.w3.org/2002/07/owl#">
   <owl:Ontology rdf:about="">
        <rdfs:comment
            >This ontology provides signatures for ISO 15926-7 templates, as developed from http://15926.org Program version 20121205 by O.Paap
        </rdfs:comment>
    </owl:Ontology>

    <owl:ObjectProperty rdf:about="hasUrClass"/>
    <owl:ObjectProperty rdf:about="hasIdentified"/>
    <owl:DatatypeProperty rdf:about="valIdentifier"/>


    <!--
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // IdentificationOfClass
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->
    <owl:Class rdf:ID="IdentificationOfClass">
        <rdfs:label>IdentificationOfClass</rdfs:label>
        <rdfs:subClassOf rdf:resource="&p7tm;BaseTemplateStatement"/>
      <owl:versionInfo></owl:versionInfo>
      <owl:priorVersion></owl:priorVersion>
      
        <rdfs:subClassOf>
            <owl:Class>
                <owl:intersectionOf rdf:parseType="Collection">
                    <owl:Restriction>
                        <owl:onProperty rdf:resource="hasUrClass"/>
                        <owl:allValuesFrom rdf:resource="&dm;Class"/>
                    </owl:Restriction>
                    <owl:Restriction>
                        <owl:onProperty rdf:resource="hasUrClass"/>
                        <owl:onClass rdf:resource="&dm;Class"/>
                        <owl:qualifiedCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:qualifiedCardinality>
                    </owl:Restriction>
                </owl:intersectionOf>
            </owl:Class>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Class>
                <owl:intersectionOf rdf:parseType="Collection">
                    <owl:Restriction>
                        <owl:onProperty rdf:resource="hasIdentified"/>
                        <owl:allValuesFrom rdf:resource="&dm;Class"/>
                    </owl:Restriction>
                    <owl:Restriction>
                        <owl:onProperty rdf:resource="hasIdentified"/>
                        <owl:onClass rdf:resource="&dm;Class"/>
                        <owl:qualifiedCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:qualifiedCardinality>
                    </owl:Restriction>
                </owl:intersectionOf>
            </owl:Class>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Class>
                <owl:intersectionOf rdf:parseType="Collection">
                    <owl:Restriction>
                        <owl:onProperty rdf:resource="valIdentifier"/>
                        <owl:allValuesFrom rdf:resource="&xsd;string"/>
                    </owl:Restriction>
                    <owl:Restriction>
                        <owl:onProperty rdf:resource="valIdentifier"/>
                        <owl:onClass rdf:resource="&xsd;string"/>
                        <owl:qualifiedCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:qualifiedCardinality>
                    </owl:Restriction>
                </owl:intersectionOf>
            </owl:Class>
        </rdfs:subClassOf>

    </owl:Class>


    <owl:Thing rdf:ID="TemplateDescription_of_IdentificationOfClass">
        <rdf:type rdf:resource="&p7tm;TemplateDescription"/>
        <rdfs:label>TemplateDescription_of_IdentificationOfClass</rdfs:label>
        <p7tm:valNumberOfRoles rdf:datatype="&xsd;integer">3</p7tm:valNumberOfRoles>
        <p7tm:hasTemplate rdf:resource="#IdentificationOfClass"/>
        <p7tpl:valFOLCode>
           <script>
            <![CDATA[
IdentificationOfClass(x1, x2, x3) <->
Class(x1) &
Class(x2) &
ExpressString(x3) &
SpecializationTemplate(x2, x1) &
ClassOfIdentificationTemplate(x3, x2) .
            ]]>
         </script>
        </p7tpl:valFOLCode>
    </owl:Thing>
   <owl:Thing rdf:ID="TemplateRoleDescription_of_IdentificationOfClass_1">
       <rdf:type rdf:resource="&p7tm;TemplateRoleDescription"/>
       <rdfs:label>(1) hasUrClass </rdfs:label>
       <p7tm:valRoleIndex rdf:datatype="&xsd;integer">1</p7tm:valRoleIndex>
       <p7tm:hasRole rdf:resource="#hasUrClass"/>
       <p7tm:hasRoleFillerType rdf:resource="&dm;Class"/>
       <p7tm:hasTemplate rdf:resource="#IdentificationOfClass"/>
   </owl:Thing>
   <owl:Thing rdf:ID="TemplateRoleDescription_of_IdentificationOfClass_2">
       <rdf:type rdf:resource="&p7tm;TemplateRoleDescription"/>
       <rdfs:label>(2) hasIdentified ID to be generated automatically</rdfs:label>
       <p7tm:valRoleIndex rdf:datatype="&xsd;integer">2</p7tm:valRoleIndex>
       <p7tm:hasRole rdf:resource="#hasIdentified"/>
       <p7tm:hasRoleFillerType rdf:resource="&dm;Class"/>
       <p7tm:hasTemplate rdf:resource="#IdentificationOfClass"/>
   </owl:Thing>
   <owl:Thing rdf:ID="TemplateRoleDescription_of_IdentificationOfClass_3">
       <rdf:type rdf:resource="&p7tm;TemplateRoleDescription"/>
       <rdfs:label>(3) valIdentifier </rdfs:label>
       <p7tm:valRoleIndex rdf:datatype="&xsd;integer">3</p7tm:valRoleIndex>
       <p7tm:hasRole rdf:resource="#valIdentifier"/>
       <p7tm:hasRoleFillerType rdf:resource="&xsd;string"/>
       <p7tm:hasTemplate rdf:resource="#IdentificationOfClass"/>
   </owl:Thing>
</rdf:RDF>



Fri Dec 07, 2012 9:40 am
Profile

Joined: Mon Feb 27, 2012 11:01 pm
Posts: 282
Location: Moscow, Russia
Onno, closing brackets in lines

<!ENTITY p7tm "http://standards.iso.org/iso/15926/tm#"
<!ENTITY p7tpl "http://standards.iso.org/iso/15926/tpl#"
<!ENTITY dm "http://standards.iso.org/iso/15926/dm#"
<!ENTITY meta "http://standards.iso.org/iso/15926/meta#"

are forgotten.

Otherwise it looks OK now.


Fri Dec 07, 2012 12:37 pm
Profile WWW

Joined: Mon Feb 27, 2012 11:01 pm
Posts: 282
Location: Moscow, Russia
Please do not use purl URIs until specific purl service is actually established. I would prefer the set of sample data downloadable from the site to use namespaces consistently.


Fri Dec 07, 2012 12:40 pm
Profile WWW

Joined: Sun Jan 22, 2012 9:14 pm
Posts: 189
Oops, repaired.

Yes I don't like to use http://purl.org actually. I created a root domain /iso15926 and it stands there waiting for "approval". Nowhere to be found an email address to lobby my domain.

I guess we need our own purl service. The software is in Java, I tested it; I suppose we need to rent a dedicated server and claim an internet domain.


Fri Dec 07, 2012 1:13 pm
Profile

Joined: Sun Jan 22, 2012 9:14 pm
Posts: 189
I have implemented these changed in the consolidate owl program.

Go to Online tools, Template specs list, and click on Generate and download __templates.owl.xml (p7tpl.owl)

Or use this direct link:
15926_template_specs.php?mode=owl

OLD LINKS - absolete wrote:


Mon Dec 10, 2012 10:24 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 28 posts ]  Go to page Previous  1, 2, 3

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
eXTReMe Tracker
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.