Java Code Examples for com.hp.hpl.jena.vocabulary.RDF.type()

The following are Jave code examples for showing how to use type() of the com.hp.hpl.jena.vocabulary.RDF class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: mindraider   File:   Source Code and License Vote up 6 votes
public ResourceDescriptor[] getAllNoteDescriptors(String outlineUri) {
    Model outlineModel;
    try {
        outlineModel = MindRaider.outlineCustodian.getModel(outlineUri);
        Property property = RDF.type;
        String literal = MindRaiderConstants.MR_OWL_CLASS_CONCEPT;
        StmtIterator i = outlineModel.listStatements((com.hp.hpl.jena.rdf.model.Resource)null,property,outlineModel.getResource(literal));
        ArrayList<String> noteUris=new ArrayList<String>();
        while(i.hasNext()) {
            Statement s=i.nextStatement();
        return getDescriptorsForNoteUris(true, outlineModel, noteUris.toArray(new String[noteUris.size()]));
    } catch (Exception e) {
        logger.debug("Unable to get resource descriptors",e); // {{debug}}

    return null;