Examples of listDatatypeProperties()


Examples of com.hp.hpl.jena.ontology.OntModel.listDatatypeProperties()

    OntModel ontModel = getOntModel();
    List<StatTO> stats = new LinkedList<StatTO>();   
    stats.add(new StatTO(OWL.AllDifferent.getURI(),
        String.valueOf(ontModel.listAllDifferent().toList().size())));
    stats.add(new StatTO(OWL.DatatypeProperty.getURI(),
        String.valueOf(ontModel.listDatatypeProperties().toList().size())));
    stats.add(new StatTO(OWL.DataRange.getURI(),
        String.valueOf(ontModel.listDataRanges().toList().size())));
    stats.add(new StatTO(OWL.AnnotationProperty.getURI(),
        String.valueOf(ontModel.listAnnotationProperties().toList().size())));
    stats.add(new StatTO(OWL.ObjectProperty.getURI(),
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.listDatatypeProperties()

                while (jenaprop.hasNext())
                    if (owlprop.contains(factory.getOWLObjectProperty(IRI.create(jenaprop.next().getURI())))) countprop++;
                if (countprop == jenapropset) assertEquals(countprop, jenapropset);
                else fail("Error in number of object properties");

                ExtendedIterator<DatatypeProperty> jenadata = model.listDatatypeProperties();
                int jenadataset = jenadata.toSet().size();
                jenadata = model.listDatatypeProperties();
                Set<OWLDataProperty> owldata = owl.getDataPropertiesInSignature();
                int countdata = 0;
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.listDatatypeProperties()

                if (countprop == jenapropset) assertEquals(countprop, jenapropset);
                else fail("Error in number of object properties");

                ExtendedIterator<DatatypeProperty> jenadata = model.listDatatypeProperties();
                int jenadataset = jenadata.toSet().size();
                jenadata = model.listDatatypeProperties();
                Set<OWLDataProperty> owldata = owl.getDataPropertiesInSignature();
                int countdata = 0;

                while (jenadata.hasNext())
                    if (owldata.contains(factory.getOWLDataProperty(IRI.create(jenadata.next().getURI())))) countdata++;
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.listDatatypeProperties()

                while (jenaprop.hasNext())
                    if (owlprop.contains(factory.getOWLObjectProperty(IRI.create(jenaprop.next().getURI())))) countprop++;
                if (countprop == jenapropset) assertEquals(countprop, jenapropset);
                else fail("Error in number of object properties");

                ExtendedIterator<DatatypeProperty> jenadata = jena.listDatatypeProperties();
                int jenadataset = jenadata.toSet().size();
                jenadata = jena.listDatatypeProperties();
                Set<OWLDataProperty> owldata = owl.getDataPropertiesInSignature();
                int countdata = 0;
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.listDatatypeProperties()

                if (countprop == jenapropset) assertEquals(countprop, jenapropset);
                else fail("Error in number of object properties");

                ExtendedIterator<DatatypeProperty> jenadata = jena.listDatatypeProperties();
                int jenadataset = jenadata.toSet().size();
                jenadata = jena.listDatatypeProperties();
                Set<OWLDataProperty> owldata = owl.getDataPropertiesInSignature();
                int countdata = 0;

                while (jenadata.hasNext())
                    if (owldata.contains(factory.getOWLDataProperty(IRI.create(jenadata.next().getURI())))) countdata++;
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.listDatatypeProperties()

    OntModel model = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );
    model.read( base + "datataype_range.owl" );

    model.prepare();

    Iterator<?> i = model.listDatatypeProperties();
    while( i.hasNext() ) {
      DatatypeProperty p = (DatatypeProperty) i.next();
      Iterator<?> j = p.listRange();
      while( j.hasNext() ) {
        Resource range = (Resource) j.next();
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.listDatatypeProperties()

    OntModel model = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );
    model.read( base + "datataype_range.owl" );

    model.prepare();

    Iterator<?> i = model.listDatatypeProperties();
    while( i.hasNext() ) {
      DatatypeProperty p = (DatatypeProperty) i.next();
      Iterator<?> j = p.listRange();
      while( j.hasNext() ) {
        Resource range = (Resource) j.next();
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.listDatatypeProperties()

                    if(countprop==jenapropset)
                        assertEquals(countprop,jenapropset);
                    else
                        fail("Error in number of object properties");

                    ExtendedIterator<DatatypeProperty> jenadata = model.listDatatypeProperties();
                    int jenadataset = jenadata.toSet().size();
                    jenadata = model.listDatatypeProperties();
                    Set<OWLDataProperty> owldata = owl.getDataPropertiesInSignature();
                    int countdata = 0;
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.listDatatypeProperties()

                    else
                        fail("Error in number of object properties");

                    ExtendedIterator<DatatypeProperty> jenadata = model.listDatatypeProperties();
                    int jenadataset = jenadata.toSet().size();
                    jenadata = model.listDatatypeProperties();
                    Set<OWLDataProperty> owldata = owl.getDataPropertiesInSignature();
                    int countdata = 0;

                    while(jenadata.hasNext())
                        if(owldata.contains(factory.getOWLDataProperty(IRI.create(jenadata.next().getURI()))))
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.listDatatypeProperties()

                    if(countprop==jenapropset)
                        assertEquals(countprop,jenapropset);
                    else
                        fail("Error in number of object properties");

                    ExtendedIterator<DatatypeProperty> jenadata = jena.listDatatypeProperties();
                    int jenadataset = jenadata.toSet().size();
                    jenadata = jena.listDatatypeProperties();
                    Set<OWLDataProperty> owldata = owl.getDataPropertiesInSignature();
                    int countdata = 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.