I tried a large number of things until I figured out that I was making my smwgNamespacesWithSemanticLinks declarations *before* the enableSemantics call. When I moved them after it (as described in the documentation, although only briefly), everything started working great.