Page 3 of 3

Re: p7tpl file generation

Posted: Thu Dec 06, 2012 2:43 pm
by OnnoPaap
**deleted, see reply further on***

Re: p7tpl file generation

Posted: Thu Dec 06, 2012 3:15 pm
by vvagr
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.

Re: p7tpl file generation

Posted: Thu Dec 06, 2012 3:34 pm
by vvagr
Sorry, Onno, no role info in the sample.

Re: p7tpl file generation

Posted: Fri Dec 07, 2012 9:40 am
by OnnoPaap
I made a lot of mistakes. Took a too old xml.

Namespaces simplified. Also, a purl.org namespace for the RDL.

Code: Select all

<?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>


Re: p7tpl file generation

Posted: Fri Dec 07, 2012 12:37 pm
by vvagr
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.

Re: p7tpl file generation

Posted: Fri Dec 07, 2012 12:40 pm
by vvagr
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.

Re: p7tpl file generation

Posted: Fri Dec 07, 2012 1:13 pm
by OnnoPaap
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.

Re: p7tpl file generation

Posted: Mon Dec 10, 2012 10:24 am
by OnnoPaap
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:
http://15926.org/15926_template_specs.php?mode=owl