Я пишу программу, использующую Netbeans для создания RDF-файла. Это исключение ошибки в потоке "main" java.lang.NoClassDefFoundError: org / slf4j / LoggerFactory.
import java.io.*;
import java.lang.*;
import com.hp.hpl.jena.rdf.model.*;
import com.hp.hpl.jena.vocabulary.*;
public class RDFWriter extends Object
{
public static void main (String args[])
{
String personURI = "http://localhost/hrudya";
String givenName = "GOPIKA";
String familyName = "NG";
String fullName = givenName + " " + familyName;
String course1 = "http://localhost/relationship/";
try {
// create an empty model
Model model = ModelFactory.createDefaultModel();
// create the resource and add the properties cascading style
Resource hrudya = model.createResource(personURI);
Property course = model.createProperty(course1,"course");
hrudya.addProperty( VCARD.FN, fullName);
hrudya.addProperty( VCARD.Given, givenName);
hrudya.addProperty( DC.title, "SEMANTIC WEB");
hrudya.addProperty(course,"M.Tech_CSE");
//model.write(new PrintWriter(System.out));
FileOutputStream fout=new FileOutputStream("p2cse10009/Desktop/rr.rdf");
model.write(fout);
FileOutputStream fout1=new FileOutputStream("p2cse10009/Desktop/hr.xml");
model.write(fout1);
}
catch (Exception e)
{
System.out.println("Failed: " + e);
}
}
public RDFWriter() {
}
}
Какую библиотеку мне добавить?