File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ WHERE {
1212	# Everything that is a  skos:Concept is an attribute by default
1313	UNION
1414	{
15- 		?subject ?attribute ?concept  .
16- 		?concept  a  skos:Concept .
15+ 		?subject ?attribute ?value  .
16+ 		?value  a  skos:Concept .
1717	}
1818}	
Original file line number Diff line number Diff line change 11#  Default edges query
2- #  Selects all the triples in the graph
2+ #  Selects all the triples in the graph relating 2 IRIs that are not skos:Concepts
3+ #  (skos:Concepts are considered attributes)
4+ PREFIX  skos: <http://www.w3.org/2004/02/skos/core#> 
5+ PREFIX  rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
36SELECT  ?subject  ?edge  ?object 
47WHERE  {
58	?subject  ?edge  ?object  .
9+ 	FILTER (
10+ 		?edge  != rdf:type
11+ 		&&
12+ 		isIRI (?object )
13+ 		&&
14+ 		isIRI (?subject )
15+ 	)
16+ 	FILTER  NOT EXISTS {
17+ 		?object  a  skos:Concept .
18+ 	}
19+ 	FILTER  NOT EXISTS {
20+ 		?subject  a  skos:Concept .
21+ 	}
622}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments