Skip to content

Commit

Permalink
Replaces deprecated calls to Node.createURI and Node.createLiteral wi…
Browse files Browse the repository at this point in the history
…th NodeFactory.createURI and NodeFactory.createLiteral
  • Loading branch information
Edwin Shin committed Jun 21, 2013
1 parent 9eae908 commit 4956d85
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 146 deletions.
Expand Up @@ -2,8 +2,8 @@
package org.fcrepo.responses;

import static com.google.common.collect.ImmutableMap.of;
import static com.hp.hpl.jena.graph.Node.createLiteral;
import static com.hp.hpl.jena.graph.Node.createURI;
import static com.hp.hpl.jena.graph.NodeFactory.createLiteral;
import static com.hp.hpl.jena.graph.NodeFactory.createURI;
import static com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel;
import static javax.ws.rs.core.MediaType.TEXT_HTML_TYPE;
import static javax.ws.rs.core.MediaType.TEXT_PLAIN_TYPE;
Expand Down Expand Up @@ -31,6 +31,7 @@
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;

import com.hp.hpl.jena.graph.NodeFactory;
import com.hp.hpl.jena.graph.Triple;
import com.hp.hpl.jena.query.Dataset;
import com.hp.hpl.jena.sparql.core.DatasetImpl;
Expand All @@ -44,7 +45,7 @@ public class BaseHtmlProviderTest {

{
testData.asDatasetGraph().getDefaultGraph().add(
new Triple(createURI("test:subject"),
new Triple(NodeFactory.createURI("test:subject"),
createURI("test:predicate"),
createLiteral("test:object")));
testData.asDatasetGraph().getDefaultGraph().add(
Expand Down
@@ -1,7 +1,7 @@

package org.fcrepo.responses;

import static com.hp.hpl.jena.graph.Node.createURI;
import static com.hp.hpl.jena.graph.NodeFactory.createURI;
import static com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel;
import static org.fcrepo.http.RDFMediaType.NTRIPLES_TYPE;
import static org.junit.Assert.assertTrue;
Expand Down
@@ -1,8 +1,8 @@

package org.fcrepo.responses;

import static com.hp.hpl.jena.graph.Node.createLiteral;
import static com.hp.hpl.jena.graph.Node.createURI;
import static com.hp.hpl.jena.graph.NodeFactory.createLiteral;
import static com.hp.hpl.jena.graph.NodeFactory.createURI;
import static com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel;
import static javax.ws.rs.core.MediaType.TEXT_HTML_TYPE;
import static org.fcrepo.responses.RdfSerializationUtils.primaryTypePredicate;
Expand Down
Expand Up @@ -2,8 +2,8 @@
package org.fcrepo.responses;

import static com.hp.hpl.jena.graph.Node.ANY;
import static com.hp.hpl.jena.graph.Node.createLiteral;
import static com.hp.hpl.jena.graph.Node.createURI;
import static com.hp.hpl.jena.graph.NodeFactory.createLiteral;
import static com.hp.hpl.jena.graph.NodeFactory.createURI;
import static com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel;
import static org.fcrepo.responses.RdfSerializationUtils.getFirstValueForPredicate;
import static org.fcrepo.responses.RdfSerializationUtils.setCachingHeaders;
Expand Down

0 comments on commit 4956d85

Please sign in to comment.