Examples of asNode()


Examples of com.hp.hpl.jena.rdf.model.RDFNode.asNode()

          .add( subject, EYE.checkFix, RDF.Statement )
          .add( subject, EYE.statementAdded, stmtBnode )
        .add( stmtBnode, RDF.type, RDF.Statement )
        .add( stmtBnode, RDF.object, classType )
        .add( stmtBnode, RDF.predicate, RDF.type )
        .add( stmtBnode, RDF.subject, m.createResource( curr.asNode().getURI() ) );
    }
  r.setMitems( repair );
  }

}
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFNode.asNode()

          minCardR = maxCardR;
        }
      RDFNode numValsR = repair.listObjectsOfProperty( curr, EYE.numValues ).nextNode();
     
      int maxCard = strToInt( maxCardR.asNode().getLiteralLexicalForm() );
      int numVals = strToInt( numValsR.asNode().getLiteralLexicalForm() );
     
      NodeIterator it1b = m.listObjectsOfProperty( m.createResource( type.asNode().getURI() ), RDFS.subClassOf );
      while (it1b.hasNext() )
        {
        b = it1b.nextNode();
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFNode.asNode()

        String defaultURI = "http://www.w3.org/2001/XMLSchema#String"; // This will be used later too (config file it??)
       
        while ( it1c.hasNext() )
          {
          RDFNode member = it1c.nextNode();
          String uri = member.asNode().getLiteralDatatypeURI();
          if ( uri == null )
            uri = defaultURI; // Default datatype URI
          if ( types.contains( uri ) )
            {
            int idx = types.lastIndexOf( uri );
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFNode.asNode()

          }
        else
          {
          RDFNode res = report.listObjectsOfProperty( curr, EYE.noConsistentTypeFor ).nextNode();
          Resource newClass = output.createResource();
          NodeIterator itb = ((OntModel)output).getBaseModel().listObjectsOfProperty( output.createResource( res.asNode().getURI() ), RDF.type );
          output.add( newClass, RDF.type, RDFS.Class );
          output.add( output.createResource( res.asNode().getURI() ), RDF.type, newClass );
          while ( itb.hasNext() )
            {
            RDFNode thisType = itb.nextNode();
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFNode.asNode()

          {
          RDFNode res = report.listObjectsOfProperty( curr, EYE.noConsistentTypeFor ).nextNode();
          Resource newClass = output.createResource();
          NodeIterator itb = ((OntModel)output).getBaseModel().listObjectsOfProperty( output.createResource( res.asNode().getURI() ), RDF.type );
          output.add( newClass, RDF.type, RDFS.Class );
          output.add( output.createResource( res.asNode().getURI() ), RDF.type, newClass );
          while ( itb.hasNext() )
            {
            RDFNode thisType = itb.nextNode();
            output.add( newClass, RDFS.subClassOf, thisType );
            output.remove( output.createStatement( output.createResource( res.asNode().getURI() ), RDF.type, thisType ) );
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFNode.asNode()

        {
        RDFNode curr = it.nextNode();
        if ( !curr.equals( x ) )
          if ( curr.isURIResource() )
            {
            if ( xSubClassOfY( input.createResource( curr.asNode().getURI() ), y ) )
              return true;
            }
          else
            {
            if ( xSubClassOfY( input.createResource( curr.asNode().getBlankNodeId() ), y ) )
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFNode.asNode()

            if ( xSubClassOfY( input.createResource( curr.asNode().getURI() ), y ) )
              return true;
            }
          else
            {
            if ( xSubClassOfY( input.createResource( curr.asNode().getBlankNodeId() ), y ) )
              return true;
            }
        }
    return false;
    }
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFNode.asNode()

    while ( it.hasNext() )
      {
      RDFNode thisnode = it.nextNode();
      Resource curr = null;
      if ( thisnode.isURIResource() )
        curr = input.createResource( thisnode.asNode().getURI() );
      else
        curr = input.createResource( thisnode.asNode().getBlankNodeId() );
      if ( !curr.equals( node ) )
        {
        int temp = getDepthOf( curr );
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFNode.asNode()

      RDFNode thisnode = it.nextNode();
      Resource curr = null;
      if ( thisnode.isURIResource() )
        curr = input.createResource( thisnode.asNode().getURI() );
      else
        curr = input.createResource( thisnode.asNode().getBlankNodeId() );
      if ( !curr.equals( node ) )
        {
        int temp = getDepthOf( curr );
        if ( temp > greatestDepth )
          greatestDepth = temp;
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFNode.asNode()

      RDFNode curr = it1.nextNode();
     
      Resource thisres = null;
     
      if ( curr.isURIResource() )
        thisres = repair.createResource( curr.asNode().getURI() );
      else
        thisres = repair.createResource( curr.asNode().getBlankNodeId() );
     
      thisres = (Resource)curr;
     
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.