I came across hypergraphdb, it seems interesting. But How to represent weighted rdf property and higher order relationships in hypergraphdb?
            Asked
            
        
        
            Active
            
        
            Viewed 124 times
        
    1
            
            
        - 
                    Can you show what you've got sofar and where you are stuck? As-is the question is rather too broad. – Jeen Broekstra Jun 18 '15 at 20:58
 - 
                    @JeenBroekstra: thanks for replying. I have successfully set-up the hypergraphdb. but I would like to know how to load Ontologies(such as OWL/RDFS) and write instances (similar to RDF Data) which follows the Ontology. Also, the main reason for choosing hypergraphdb is that it supports higher order relationships (edges) between graph nodes. I need that feature to represent RDF Property with weighted values. For example: if [A-likes->B] then I would like to attach a weight to the 'likability'. I haven't found an example that does just that so far. Any help will be very much appreciated. – Vinoth Kumar Asaithambi Jun 18 '15 at 23:33
 - 
                    Did you find an answer to your question? I'm in the same situation as you too. Thanks! – haikalpribadi Jun 18 '15 at 23:51
 - 
                    I don't know much about HypergraphDB, but you don't need higher-order relationships to support attaching weights to properties. There are several practical approaches for doing that within the RDF standard, either by using a form of reification, or by using the named graph/context/quad mechanism available in most RDF databases. – Jeen Broekstra Jun 22 '15 at 03:42
 
1 Answers
1
            
            
        You can add values to relations with the HGValueLink method:
HGHandle relationLink = hyperGraph.add(new HGValueLink("my-string-identifier", startHandle, endHandle));
"my-string-value" is a String object but you could add an Integer or any other object to the relation.
        sarah.ferguson
        
- 3,167
 - 2
 - 23
 - 31