This is another not-an-issue question but sent to JIRA. It is not a bug, it is a question about how to use Jena. It is also unanswerable because of lack of detail.

It is also a stackoverflow question from yesterday.

This is the 3rd one in a week (one was actually about another system anyway) calling something a bug that are really about how to use Jena.

Questions are not bugs.
Neither are they "urgent".
Often, the questioner does not respond and we get floating JIRA issues.

They aren't going to get answered on JIRA so I think we should quickly close them for fear of getting swamped, referring to them to users@ e.g. boiler plate like:

-------------
Hi there,

This is a question and is best sent to the Jena users mailing list.

[email protected].

You need to subscribe first, then respond to the verification email, then send your question:

For details:
https://jena.apache.org/help_and_support/index.html
-------------

    Andy

On 01/04/2020 10:01, David (Jira) wrote:
David created JENA-1876:
---------------------------

              Summary: Parsing json-ld in Jena and type : rdfs:container does 
not come through as a statement
                  Key: JENA-1876
                  URL: https://issues.apache.org/jira/browse/JENA-1876
              Project: Apache Jena
           Issue Type: Bug
           Components: Base
             Reporter: David


I have a jsonld file that I am parsing using Jena. The file has @type @id "rdfs:label" 
and "rdfs:comment" and also ranges and domains. I have a test java program like this

Model m = ModelFactory.createDefaultModel();

{{    Reader fileReader = new FileReader(fileName);
     Model model = m.read(fileReader, null, "JSON-LD");
     StmtIterator it = model.listStatements();
     Set<String> set = new HashSet<>();

     System.out.println("Labels");
     while (it.hasNext()) {
         Statement statement = it.next();}}

.... It seems to pick up all the content but does not see the @type statements 
with rdfs:container. How do I pick up these statements using this parser?

A fragment of the json-ld is \{ "@id": "aaa:bbb", "@type": [ "rdfs:container" ], "rdfs:label": { "@language": "en", "@value": "cccc" }, "rdfs:comment": \{ 
"@language": "en", "@value": "dddd." }, "rdfs:member": [ \{ "@id": "aaaa:eeee" }, \{ "@id": "aaaa:fffff" } ],

When the type is rdfs:class - I get a statement coming through with predicate "type" and 
the object as the RDFClass, but when the type is rdfs:container - as in the above example I do not 
get a statement through. I was expecting a statement to come through with the predicate of 
"type" and a subject with localName of bbb and an object specifying the container class. 
I do not see such a statement. How to I detect in the parser that the presence of the 
rdfs:container? The presence of the container tag is very meaningful for our parser. We are looking 
at alternative ways of representing this sort of information in the model because of this issue.

I notice Jena has the concept of Container : 
[https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/rdf/model/Container.html].
 I can see write orientated methods that refer to this.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to