Package org.ontoware.rdfreactor.schema.bootstrap

Examples of org.ontoware.rdfreactor.schema.bootstrap.OWL_Protege_NRL_Restriction


                                OWL.onProperty, rp.getResource());
                        while(it.hasNext()) {
                            Statement stmt = it.next();
                            org.ontoware.rdf2go.model.node.Resource restrictionResource = stmt
                                    .getSubject();
                            OWL_Protege_NRL_Restriction restriction = OWL_Protege_NRL_Restriction
                                    .getInstance(m, restrictionResource);
                           
                            int min = restriction.getAllMinCardinality_asList().get(0);
                            log.debug("Found minrestriction on " + rp + " minCard = " + min);
                            if(min != -1)
                                jprop.setMinCardinality(min);
                            int max = restriction.getAllMaxCardinality_asList().get(0);
                            log.debug("Found maxrestriction on " + rp + " maxCard = " + max);
                            if(max != -1)
                                jprop.setMaxCardinality(max);
                        }
                        it.close();
View Full Code Here


            jprop.addType(jm.getRoot());
        }
       
        // process cardinality constraints (convert this property to an OWL
        // restriction)
        OWL_Protege_NRL_Restriction restriction = (OWL_Protege_NRL_Restriction)property
                .castTo(OWL_Protege_NRL_Restriction.class);
        assert restriction != null;
       
        Integer card = restriction.getCardinality();
        Integer minCard = restriction.getMinCardinality();
       
        Integer maxCard = restriction.getMaxCardinality();
        int min = -1;
        int max = -1;
       
        if(minCard != null) {
            min = minCard;
View Full Code Here

TOP

Related Classes of org.ontoware.rdfreactor.schema.bootstrap.OWL_Protege_NRL_Restriction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.