Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
workaround Inrupt issue with blank nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
calummackervoy committed Mar 29, 2021
1 parent 29c5aac commit e73dffc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/mackervoy/calum/mud/content/Content.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public class Content {
//TODO: when we support more kinds of content other than text use the builder pattern
public static Model getContentFromText(Resource agent, Resource targetObject, Property senseProperty, String textContent) {
Model model = ModelFactory.createDefaultModel();
Resource content = ResourceFactory.createResource();
//TODO: https://github.com/inrupt/solid-client-js/issues/948
Resource content = ResourceFactory.createResource("http://localhost:8080/mud/content/#fake-resource");

model.add(content, RDF.type, MUDContent.Content);
model.add(content, MUDContent.hasText, textContent);
Expand Down

0 comments on commit e73dffc

Please sign in to comment.