OK, I had a problem here when converting bio2rdf.org irefindex data to nanopublication using SPARQL here:
In a database, if the item is looking for have multiple types, but you have only need one of those types in your converted Data, what are can do-is-use-a SPARQL filter function with regex
1. The proper SPARQL filter syntax is as follows:
Selectwhere{ ? s? P O. for filter) #it ' s brackets () not curly parenthesis {}}
2. The proper regex to match those items if you don ' t want
^. *? (? < ! Resource) $ # The Regex filter regex (? Interaction_type, "^. *? (? < Use in the filter
^.*? (?<
2. For example, find a string that does not end in COM.
www.sina.com.cn
www.educ.org
www.hao.cc
Www.baidu.com
^.*? (? <!com) $ matches the first 3 rows of results. If you look for a string that ends in COM, use regular ^.*? (? <=com) $ or ^.*?com$
Online regex tester is also very helpful when debugging your regex:https://regex101.com/
Regular Expression "not matching" and SPARQL Filter function usage